Creative studioGeneratedModels
GPT Image 2
Creative Studio image model reference for the public API.
GPT Image 2
Public model ID: gpt-image-2
Asset type: image
Category: Generation
Starting credits: 0.05 (defaults: 0.65)
Prompt required.
Start a generation
curl -s -X POST "$API_BASE_URL/v1/creative-studio/generations" \
-H "Authorization: Bearer vsl_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"modelId": "gpt-image-2",
"prompt": "Your prompt here",
"input_images": ["https://example.com/reference.jpg"],
"aspect_ratio": "1:1"
}' | jqPoll GET /v1/creative-studio/generations/{id} until status is completed. Completed generations return outputUrl on cdn.videoslash.com.
Media parameters
| Name | Type | Constraints | Default | Description |
|---|---|---|---|---|
input_images | array | optional · max items: 10 | [] | A list of images to use as input for the generation |
Settings parameters
| Name | Type | Constraints | Default | Description |
|---|---|---|---|---|
aspect_ratio | enum | optional · enum: 1:1, 3:2, 2:3 | 1:1 | The aspect ratio of the generated image |
number_of_images | integer | optional · min: 1 · max: 10 | 1 | Number of images to generate (1-10) |
quality | enum | optional · enum: low, medium, high, auto | auto | The quality of the generated image |
background | enum | optional · enum: auto, transparent, opaque | auto | Set whether the background is transparent or opaque or choose automatically |
output_compression | integer | optional · min: 0 · max: 100 | 90 | Compression level (0-100%) |
output_format | enum | optional · enum: png, jpeg, webp | webp | Output format |
moderation | enum | optional · enum: auto, low | auto | Content moderation level |