Scoped billing reference

Price for the stated settings.

$0.0042Per image
1024×1024 · low quality · generation only

Image generation uses the stated size and quality. Contact Roten for image-editing pricing.

Get API Access

Capabilities

Model capabilities.

Input → output

text, image → image

Workload candidates.

Candidates for the stated workload and billing scope.

Image Editing

Available candidate

Upload an image as multipart data and describe the edits. The response contains PNG image data.

View workload

Reference Arena scores.

Reference scores.

Reference Arena scores for GPT Image 2
WorkloadBenchmarkRecorded score
Image GenerationArena1383
Image EditingArena1462

Reference benchmark data is separate from API capability tests.

Read the methodology

Implementation

Test this model.

Copy a model request, replace the API key with your own, and run.

API model ID: gpt-image-2

Image generation and multipart image editing, with PNG output.

Copy the Python or cURL test for GPT Image 2. Replace the API-key placeholder with your own key and run.

GPT Image 2 · image generation · Creates one low-quality test image and returns its base64 image data in the response.

GPT Image 2 · Python
import requests

response = requests.post(
    url="https://api.roten-ai.com/v1/images/generations",
    headers={
        "Authorization": "Bearer YOUR_ROTEN_API_KEY",
    },
    json={
        "model": "gpt-image-2",
        "prompt": "A simple indigo geometric cube on a plain white background.",
        "n": 1,
        "size": "1024x1024",
        "quality": "low",
        "response_format": "b64_json"
    },
    timeout=180,
)

print(response.json())
response.raise_for_status()

Python requires requests: install once with python3 -m pip install requests. cURL examples run directly in your terminal.

Built for production

Running AI at scale?

Talk to us about volume pricing, model selection and migration.

Talk to Sales