Skip to content

Commit 1fa3165

Browse files
feat: re-gen openai/gpt-image-1 EDIT
1 parent c8b5e20 commit 1fa3165

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

docs/api-references/image-models/OpenAI/gpt-image-1-EDIT.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@
151151
"type": "object",
152152
"nullable": true,
153153
"properties": {
154-
"tokens_used": {
154+
"credits_used": {
155155
"type": "number",
156156
"description": "The number of tokens consumed during generation.",
157157
"example": 120000
158158
}
159159
},
160160
"required": [
161-
"tokens_used"
161+
"credits_used"
162162
]
163163
}
164164
},
@@ -182,7 +182,7 @@
182182
},
183183
{
184184
"lang": "cURL",
185-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/edits' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --form \"prompt=Add a crown to the T-rex's head.\" \\\n --form \"image=@<YOUR_IMAGE_PATH.png>;type=image/png;filename=<IMAGE_NAME>\""
185+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/edits' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --form \"prompt=Add a crown to the T-rexs head.\" \\\n --form \"image=@<YOUR_IMAGE_PATH.png>;type=image/png;filename=<IMAGE_NAME>\""
186186
},
187187
{
188188
"lang": "HTTP",
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
[
22
{
3-
"name": "klingai/video-v2-6-pro-motion-control",
4-
"url": "https://ai.aimlapi.com/docs-json?endpoint=internal/video-generations/submit&model=klingai/video-v2-6-pro-motion-control",
5-
"alias": "video-v2-6-pro-motion-control",
6-
"category": "video-models",
7-
"vendor": "Kling AI",
8-
"codeSamples": "custom",
9-
"customUrlApi": "https://api.aimlapi.com/v2/video/generations",
10-
"customParams":{
11-
"model": "klingai/video-v2-6-pro-motion-control",
12-
"image_url": "https://cdn.aimlapi.com/flamingo/files/b/0a875302/8NaxQrQxDNHppHtqcchMm.png",
13-
"video_url": "https://cdn.aimlapi.com/flamingo/files/b/0a8752bc/2xrNS217ngQ3wzXqA7LXr_output.mp4"
14-
}
3+
"name": "openai/gpt-image-1",
4+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=openai/gpt-image-1",
5+
"alias": "gpt-image-1-EDIT",
6+
"category": "image-models",
7+
"vendor": "OpenAI",
8+
"codeSamples": "image-models:image"
159
}
1610
]

0 commit comments

Comments
 (0)