Model

GPT Image 2 API

GPT Image 2 is the cheapest way to generate a lot of drafts: strong prompt adherence at a low per-image price. This page shows the live price and the exact request to send.

Price

$0.009375 / image

Billed per generated image from your prepaid balance. Prices come from the gateway’s live price list and refresh every five minutes.

What it is good for

  • High-volume drafts and A/B testing of prompts
  • Thumbnails, illustrations and simple product shots
  • Pipelines that generate hundreds of variations

Where to be careful

  • Draft quality — not the model to use for a final 4K hero image
  • For resolution tiers, use the fd / flare variants or a Gemini image model

Prompt examples

  • A matte ceramic mug on a warm concrete surface, soft window light, 45° angle, product photography
  • Flat vector illustration of a laptop with a rising chart, two-colour palette, no text
  • Top-down photo of a linen tote bag on a wooden table, natural light, shallow depth of field

Call it from the command line

curl https://api.tokwork.com/v1/images/generations \
  -H "Authorization: Bearer $TOKWORK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "your prompt here",
    "size": "1024x1024"
  }'

Or with the OpenAI SDK

import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.TOKWORK_API_KEY,
  baseURL: 'https://api.tokwork.com/v1',
})

const image = await client.images.generate({
  model: 'gpt-image-2',
  prompt: 'your prompt here',
  size: '1024x1024',
})

Questions

Is the GPT Image 2 API OpenAI-compatible?
Yes. TokWork exposes the OpenAI images request shape, so an existing OpenAI SDK works after you change the base URL and key.
How much does one image cost?
The live price is shown above, read from the gateway price list. It is charged per generated image, not per token.
Do I need an OpenAI account?
No. You use a TokWork account and key; TokWork handles the upstream provider.

Start with one key

Create an account, top up any amount, and send your first request in a few minutes.