LLM API
OpenAIImage generation

GPT Image 2.5 Flare

GPT Image 2.5 Flare costs $0.22 per image on LLM API. It generates and edits images.

Pricing

Served by Azure, the only provider.

GPT Image 2.5 Flare prices on LLM API
Image$0.22/ imageper image
Input$5per 1M tokens
Output$30per 1M tokens
Cache read$1.25per 1M tokens

Specifications

  • ModesGenerate, Edit
  • Output formatsPNG, JPEG
  • Input imagesUp to 16, 50 MB each
  • Sizes18 sizes
    • 1024×1024
    • 1536×1024
    • 1024×1536
    • 2048×2048
    • 2048×1152
    • 2560×1440
    • 3840×2160
    • 2160×3840
    • 3840×1648
    • 1312×800
    • 800×1312
    • 1248×832
    • 1536×864
    • 864×1536
    • 1920×640
    • 2880×960
    • 3360×1120
    • 1440×480

Call GPT Image 2.5 Flare

POST /v1/images/generationsSet LLMAPI_KEY to your LLM API key.Generate docs

import base64
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

result = client.images.generate(
    model="gpt-image-2.5-flare",
    prompt="A lighthouse at dawn, watercolor",
)
with open(f"image.{result.output_format}", "wb") as f:
    f.write(base64.b64decode(result.data[0].b64_json))

More from OpenAI

All OpenAI image models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up