Skip to content

Commit 88de0b1

Browse files
feat: re-gen triposr and magic/image-to-3d
1 parent d466ee5 commit 88de0b1

3 files changed

Lines changed: 159 additions & 39 deletions

File tree

docs/api-references/3d-generating-models/Stability-AI/triposr.json

Lines changed: 142 additions & 1 deletion
Large diffs are not rendered by default.

docs/api-references/3d-generating-models/magic/image-to-3d.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@
116116
"x-codeSamples": [
117117
{
118118
"lang": "JavaScript",
119-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/images/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
119+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/images/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Fly_Agaric_mushroom_05.jpg/576px-Fly_Agaric_mushroom_05.jpg\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
120120
},
121121
{
122122
"lang": "Python",
123-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/images/generations\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }\n)\n\ndata = response.json()\nprint(data)"
123+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/images/generations\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Fly_Agaric_mushroom_05.jpg/576px-Fly_Agaric_mushroom_05.jpg\"\n }\n)\n\ndata = response.json()\nprint(data)"
124124
},
125125
{
126126
"lang": "cURL",
127-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }'"
127+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Fly_Agaric_mushroom_05.jpg/576px-Fly_Agaric_mushroom_05.jpg\"\n }'"
128128
},
129129
{
130130
"lang": "HTTP",
131-
"source": "POST /v1/images/generations HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n}"
131+
"source": "POST /v1/images/generations HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"magic/image-to-3d\",\n \"front_image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Fly_Agaric_mushroom_05.jpg/576px-Fly_Agaric_mushroom_05.jpg\"\n}"
132132
}
133133
]
134134
}
Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,23 @@
11
[
22
{
3-
"name": "magic/text-to-video",
4-
"alias": "text-to-video",
5-
"category": "video-models",
6-
"vendor": "magic",
7-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=magic/text-to-video",
8-
"codeSamples": "custom",
9-
"customUrlApi": "https://api.aimlapi.com/v2/video/generations",
10-
"customParams":{
11-
"model": "magic/text-to-video",
12-
"prompt": "AI/ML API",
13-
"template": "Shanghai Drone Show"
14-
}
15-
},
16-
{
17-
"name": "magic/image-to-video",
18-
"alias": "image-to-video",
19-
"category": "video-models",
20-
"vendor": "magic",
21-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=magic/image-to-video",
22-
"codeSamples": "custom",
23-
"customUrlApi": "https://api.aimlapi.com/v2/video/generations",
24-
"customParams":{
25-
"model": "magic/image-to-video",
26-
"image_url": "https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/aimlapi.jpg",
27-
"template": "New York Times Square (66)"
28-
}
3+
"name": "triposr",
4+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=triposr",
5+
"alias": "triposr",
6+
"category": "3d-generating-models",
7+
"vendor": "Stability AI",
8+
"codeSamples": "hide"
299
},
3010
{
31-
"name": "magic/video-to-video",
32-
"alias": "video-to-video",
33-
"category": "video-models",
11+
"name": "magic/image-to-3d",
12+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=magic/image-to-3d",
13+
"alias": "image-to-3d",
14+
"category": "3d-generating-models",
3415
"vendor": "magic",
35-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=magic/video-to-video",
3616
"codeSamples": "custom",
37-
"customUrlApi": "https://api.aimlapi.com/v2/video/generations",
17+
"customUrlApi": "https://api.aimlapi.com/v1/images/generations",
3818
"customParams":{
39-
"model": "magic/video-to-video",
40-
"video_url": "https://cdn.aimlapi.com/panda/pixverse%2Fmp4%2Fmedia%2Fweb%2Fori%2FSPATnCC6Dp3nA9Sie3fsU_seed186094117.mp4",
41-
"template": "Thailand Street"
19+
"model": "magic/image-to-3d",
20+
"front_image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Fly_Agaric_mushroom_05.jpg/576px-Fly_Agaric_mushroom_05.jpg"
4221
}
4322
}
4423
]

0 commit comments

Comments
 (0)