Prices and lanes
USD per million tokens. Availability covers the last 7 days, 2 hours per bar.
Prices checked 2026-10-03 17:20 UTC · How to choose a lane · gpt-image-2.json · gpt-image-2.md
Capabilities
- Unsupported parameters
- temperature — leave it out of the request; this model does not accept it
Example request
curl -X POST https://api.lazu.ai/v1/images/generations \
-H "Authorization: Bearer $LAZU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A minimalist poster of a sunrise over the ocean",
"size": "1024x1024"
}'
import os
import requests
resp = requests.request(
"POST",
"https://api.lazu.ai/v1/images/generations",
headers={"Authorization": f"Bearer {os.environ['LAZU_API_KEY']}"},
json={"model": "gpt-image-2", "prompt": "A minimalist poster of a sunrise over the ocean", "size": "1024x1024"},
)
print(resp.json())
const resp = await fetch("https://api.lazu.ai/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LAZU_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ model: "gpt-image-2", prompt: "A minimalist poster of a sunrise over the ocean", size: "1024x1024" }),
});
console.log(await resp.json());
Any OpenAI SDK works too: set base_url to https://api.lazu.ai/v1. Full integration docs
Questions
What is the difference between the stable and discount lanes?
The stable lane runs on each maker's official API, is billed at the list price, has the highest availability and suits every use. The discount lane is a reverse-engineered route: a third-party supplier serves the model through its official client, not the official API. It costs far less, but availability varies, a failed request does not fall back to the stable lane, and the supplier may add its own system prompt. So use it only inside the matching agent tool: Claude models in Claude Code, GPT models in Codex, Gemini models in Antigravity. For your own code, or anywhere the output must be controlled exactly, use the stable lane. Both lanes work with the same key, and each key picks the lane per model.
Can I call gpt-image-2 with the OpenAI SDK?
Yes. Point the SDK's base URL at https://api.lazu.ai/v1 and use gpt-image-2 as the model name. The native Images endpoint /v1/images/generations works as well.
How is it billed?
Per token actually used — input, output and cache — deducted from your wallet balance. There is no monthly fee, and every request shows up itemized in your usage log.