nsizequalitybackgroundmoderationoutput_formatoutput_compressionBy default the router tries our listings in routing order and fails over before the first byte — never mid-answer. Uptime is our own measurement; an hour stays grey until it has a sample. Open the row for the provider's specs and policies.
curl https://api.routerplus.com/v1/images/generations \
-H "Authorization: Bearer $TM_API_KEY" -H "content-type: application/json" \
-d '{"model":"gpt-image-2","prompt":"a red dot","size":"1024x1024","quality":"low"}'# OpenAI SDK — only the base URL changes import base64, os from openai import OpenAI client = OpenAI(base_url="https://api.routerplus.com/v1", api_key=os.environ["TM_API_KEY"]) r = client.images.generate(model="gpt-image-2", prompt="a red dot", size="1024x1024", quality="low") png = base64.b64decode(r.data[0].b64_json)
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.routerplus.com/v1", apiKey: process.env.TM_API_KEY }); const r = await client.images.generate({ model: "gpt-image-2", prompt: "a red dot", size: "1024x1024", quality: "low" }); const png = Buffer.from(r.data[0].b64_json, "base64");
| prompt | $5 |
| completion | $30 |
| per image, at most | 8,232 tokens · $0.25 |
Every billed response carries usage.cost — recompute your bill from the wire.
Values outside these are refused with a 400 that names the field.
An hour counts at the best provider's uptime: a request goes to another provider when one fails. Grey hours have no sample yet.