Image models › GPT Image
GPT Image-2 - Text to Image
GPT Image-2 - Text to Image
image GPT Image 8 tokens per image $0.005 per token
Pricing
| Option | Tokens | Unit | ≈ USD |
|---|---|---|---|
| text-to-image, 1k | 8 | per image | $0.0400 |
| text-to-image, 2k | 13 | per image | $0.0650 |
| text-to-image, 4k | 21 | per image | $0.1050 |
The price is held when the task is created and settled to actual consumption when it completes; a failed task releases the hold.
How to order
Pictures are ordered as a series of the project: create the series with this model (its id goes into model), then order the pictures.
POST https://app.video-blade.com/api/v1/projects/{id}/image-series
X-API-Key: vb_…
Content-Type: application/json
{"title": "…", "prompt": "…", "model": "gpt-gpt-image-2-text-to-image", "aspect_ratio": "9:16", "count": 2}
POST https://app.video-blade.com/api/v1/projects/{id}/image-series/{item_id}/generate
→ 202 {"generation_ids": ["…"], "status": "running", "tokens_held": …}
Field lists and refusal codes — API reference.
Model parameters
What the model itself understands; the ordering calls above take their own fields and pass these on.
| Name | Type | Required | Description |
|---|---|---|---|
prompt |
string | required | Text prompt. Required, maximum 20,000 characters. |
aspect_ratio |
string | optional | The aspect ratio of the generated image is set to auto by default. Note: for 2K resolution, the following aspect ratios are not supported: 5:4, 4:5, 3:1, 1:3, and 9:21. for 4K resolution, the following aspect ratios are not supported: 3:1, 1:3, and 9:21. Values:
auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21 |
resolution |
string | optional | Image resolution: Note: Images with a 1:1 aspect ratio cannot be converted to 4K images. Images with the aspect ratio set to "auto" or without a specified aspect ratio parameter will only be converted to 1K images; otherwise, the task will fail to create. Values:
1K, 2K, 4K |
background |
string | optional | Image background Note: This parameter is only supported when the resolution is 1K. Values:
transparent, opaque, auto |