Skip to content

Commit ce0bf48

Browse files
feat: re-re-gen seededit-3.0-i2i
1 parent b633cbc commit ce0bf48

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/api-references/image-models/ByteDance/seededit-3.0-i2i.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@
137137
"x-codeSamples": [
138138
{
139139
"lang": "JavaScript",
140-
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"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();"
140+
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"image\": \"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();"
141141
},
142142
{
143143
"lang": "Python",
144-
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }\n)\n\ndata = response.json()\nprint(data)"
144+
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"image\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }\n)\n\ndata = response.json()\nprint(data)"
145145
},
146146
{
147147
"lang": "cURL",
148-
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex\\'s head.\",\n \"image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }'"
148+
"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\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex\\'s head.\",\n \"image\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }'"
149149
},
150150
{
151151
"lang": "HTTP",
152-
"source": "POST / HTTP/1.1\nHost: test.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"image_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n}"
152+
"source": "POST / HTTP/1.1\nHost: test.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"bytedance/seededit-3.0-i2i\",\n \"prompt\": \"Add a crown to the T-rex's head.\",\n \"image\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n}"
153153
}
154154
]
155155
}

packages/generators-v2/src/json_for-docs_generation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"customParams":{
1111
"model": "bytedance/seededit-3.0-i2i",
1212
"prompt": "Add a crown to the T-rex's head.",
13-
"image_url": "https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png"
13+
"image": "https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png"
1414
}
1515
}
1616
]

0 commit comments

Comments
 (0)