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-fd", 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-fd", 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-fd","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$10.50Output / 1M$63
Input / 1M$0.42Output / 1M$2.52
Input / 1M$10.50Output / 1M$63
Input / 1M$4.20Output / 1M$25.20
Input / 1M$21Output / 1M$105
Input / 1M$0.21Output / 1M$1.05
Compare with other labs
Full price list →doubao-seedream-5-0-pro-260628ByteDance · Image
Price$0.0945 / image
Price$0.0786 / image
Price$0.0422 / image
Price$0.0281 / image
Price$0.1407 / image
grok-imagine-image-2.0xAI · Image
Price$0.1407 / image