You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9b33dbf
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Кристина Орехова
committed
docs: update seedance-2-0 schema to match fast version structure
Add x-hideTryItPanel, x-codeSamples (cURL/JS/Python), and
components.securitySchemes; remove example.com from Try It panel.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
"description": "Description of the error, if any.",
162
196
"properties": {
163
197
"name": {
164
198
"type": "string"
165
199
},
166
200
"message": {
167
201
"type": "string"
168
202
}
169
-
}
203
+
},
204
+
"required": [
205
+
"name",
206
+
"message"
207
+
],
208
+
"description": "Description of the error, if any."
170
209
},
171
210
"meta": {
172
211
"type": "object",
173
212
"nullable": true,
174
-
"description": "Additional details about the generation.",
175
213
"properties": {
176
214
"usage": {
177
215
"type": "object",
178
216
"nullable": true,
179
-
"required": ["credits_used", "usd_spent"],
180
217
"properties": {
181
218
"credits_used": {
182
219
"type": "number",
@@ -188,17 +225,51 @@
188
225
"description": "The total amount of money spent by the user in USD.",
189
226
"example": 0.06
190
227
}
191
-
}
228
+
},
229
+
"required": [
230
+
"credits_used",
231
+
"usd_spent"
232
+
]
192
233
}
193
-
}
234
+
},
235
+
"description": "Additional details about the generation."
194
236
}
195
-
}
237
+
},
238
+
"required": [
239
+
"id",
240
+
"status"
241
+
]
196
242
}
197
243
}
198
244
}
199
245
}
200
-
}
246
+
},
247
+
"x-hideTryItPanel": true,
248
+
"x-codeSamples": [
249
+
{
250
+
"lang": "cURL",
251
+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v2/video/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n\"model\": \"bytedance/seedance-2-0\",\n\"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming.\"\n }'"
252
+
},
253
+
{
254
+
"lang": "JavaScript",
255
+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v2/video/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n\"model\": \"bytedance/seedance-2-0\",\n\"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming.\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
256
+
},
257
+
{
258
+
"lang": "Python",
259
+
"source": "import requests\n\nresponse = requests.post(\n\"https://api.aimlapi.com/v2/video/generations\",\n headers={\n\"Content-Type\": \"application/json\",\n\"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n\"model\": \"bytedance/seedance-2-0\",\n\"prompt\": \"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming.\"\n }\n)\n\ndata = response.json()\nprint(data)"
0 commit comments