Skip to content

Commit b633cbc

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

3 files changed

Lines changed: 15 additions & 10 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\": \"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_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();"
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\": \"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_url\": \"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\": \"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_url\": \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\"\n }'"
149149
},
150150
{
151151
"lang": "HTTP",
152-
"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\": \"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}"
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}"
153153
}
154154
]
155155
}

docs/api-references/image-models/flux/flux-kontext-pro.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[
22
{
3-
"name": "flux/srpo/image-to-image",
4-
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=flux/srpo/image-to-image",
5-
"alias": "flux/srpo/image-to-image",
3+
"name": "bytedance/seededit-3.0-i2i",
4+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=bytedance/seededit-3.0-i2i",
5+
"alias": "seededit-3.0-i2i",
66
"category": "image-models",
7-
"vendor": "Flux",
8-
"codeSamples": "image-to-image"
7+
"vendor": "ByteDance",
8+
"codeSamples": "custom",
9+
"customUrlApi": "https://api.aimlapi.com/v1/images/generations",
10+
"customParams":{
11+
"model": "bytedance/seededit-3.0-i2i",
12+
"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"
14+
}
915
}
1016
]

0 commit comments

Comments
 (0)