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="gemini-2.5-flash-image", 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: "gemini-2.5-flash-image", 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":"gemini-2.5-flash-image","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 Google
All Google models →
Price$0.0422 / image
Price$0.0281 / image
Input / 1M$4.20Output / 1M$25.20
Input / 1M$3.15Output / 1M$18.90
Input / 1M$3.15Output / 1M$15.75
Input / 1M$3.15Output / 1M$15.75
Compare with other labs
Full price list →doubao-seedream-5-0-pro-260628ByteDance · Image
Price$0.0945 / image
Price$0.525 / image
Price$0.525 / image
Price$0.525 / image
Price$0.525 / image
Price$0.525 / image