Omni Image G2

Omni Image G2 API for image generation at $0.0141 per image. Economical text-to-image and edits. Call it on /v1/images/generations and pay as you go in USD.

Price
$0.0141
Unit
per image
Type
Image generation
Endpoint
/v1/images/generations

Pricing

$0.0141 per image

Estimated $0.0564

USD, charged from your prepaid balance at the listed price. List price; a few keys on special plans may differ. How billing works

What it does

Economical text-to-image and edits

Model ID
omni-image-g2
Modes
Image edit, Text to image

API

POST /v1/images/generations

Returns the result in the response. Set BIGMODEL_API_KEY to your API key first.

cURL
curl https://bigmodel.io/v1/images/generations \
  -H "Authorization: Bearer $BIGMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "omni-image-g2",
    "prompt": "A paper lantern floating over a misty lake at dawn",
    "n": 1
  }'

Python, Node.js, every input field and error handling are in the guide. Guide →

Related models

All models of this type →