Call it from your code
from openai import OpenAI client = OpenAI(base_url="https://devsaio.lol/v1", api_key="dsk_...") img = client.images.generate(model="gpt-image-2.5-flare", prompt="A lighthouse at dusk", n=1) print(img.data[0].url or img.data[0].b64_json[:40])
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://devsaio.lol/v1", apiKey: process.env.DEVSAIO_API_KEY });
const img = await client.images.generate({ model: "gpt-image-2.5-flare", prompt: "A lighthouse at dusk", n: 1 });curl https://devsaio.lol/v1/images/generations \
-H "Authorization: Bearer $DEVSAIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2.5-flare","prompt":"A lighthouse at dusk","n":1}'Works with any OpenAI-compatible SDK or tool. Setup guides for Claude Code, Codex and Cursor
More from OpenAI
All OpenAI models →
Input / 1M$5.25Output / 1M$31.50
Input / 1M$0.21Output / 1M$1.26
Input / 1M$5.25Output / 1M$31.50
Input / 1M$2.10Output / 1M$12.60
Input / 1M$10.50Output / 1M$52.50
Input / 1M$0.105Output / 1M$0.525
Compare with other labs
Full price list →doubao-seedream-5-0-pro-260628ByteDance · Image
Price$0.0473 / image
Price$0.0393 / image
Price$0.0211 / image
Price$0.0141 / image
Price$0.0704 / image
grok-imagine-image-2.0xAI · Image
Price$0.0704 / image