OpenAI

gpt-image-2-text-to-image

This is a discounted trial route. Generation may take longer and has roughly a 10% chance of failing. It is best for cost-sensitive image generation trials where queueing and occasional failures are acceptable; for more stable production use, choose a regular route.

  • Multimodal output
  • Long context

Try this model

Choose an aspect ratio and resolution to generate an image.

gpt-image-2-text-to-image

Input

Aspect ratio
Resolution

1024 × 1024 px

Uses your account balance at the model’s current rates.

Generated result

Your creation appears here

Enter a prompt, choose your settings, and generate.

Insufficient balance

Your account balance is insufficient for this generation. Top up, then return here to try again.

API

Code examples

curl --location --request POST 'https://api.tokenhot.ai/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-image-2-text-to-image",
    "prompt": "A cute baby sea otter",
    "size": "1024x1024"
}'

Blog

Related Articles

FAQ

Frequently asked questions

What is gpt-image-2-text-to-image best suited for?

gpt-image-2-text-to-image is suited to the input, output, and capability types listed on this page. Test production workloads before choosing it for a critical system.

How is gpt-image-2-text-to-image priced?

Pricing is shown in the pricing section above. Actual cost depends on usage volume, account group, and the request payload.

How can I call gpt-image-2-text-to-image?

Use the model ID shown above with one of the supported API protocols. Code examples are provided when usage data is available.

Get started

Build with gpt-image-2-text-to-image

Use in Console