Get started
Quickstart
From no account to a finished file in three steps.
1. Get a key and credits
- Sign in and open API keys in the dashboard. Create a key. It is shown once, so copy it now.
- Open Billing and add credits. Credits are prepaid; there is no subscription.
- Export the key in your terminal:
export OPENGRID_API_KEY=og_live_...2. Start a generation and wait for it
?wait=60 keeps the request open until the job finishes, so a short job comes back done in one call. You are charged only if it succeeds.
curl "https://api.opengrid.one/v1/generations?wait=60" \
-H "Authorization: Bearer $OPENGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"variant": "2k",
"quantity": 1,
"input": {
"prompt": "A paper boat drifting down a rain gutter, golden hour",
"aspect_ratio": "16:9"
}
}'{
"id": "5b0e7c1e-6f0e-4a55-9d9b-3f2a8f1c2d10",
"status": "succeeded",
"charged_usd": 0.141225,
"outputs": [
{
"url": "https://api.opengrid.one/v1/generations/5b0e7c1e-.../content/0?exp=1795546991&sig=...",
"mime": "image/png"
}
],
"error": null,
"finished_at": "2026-11-24T18:03:34.009Z"
}A long video can outlast one request. The reply then has status: "running", and you wait on the same job with GET /v1/generations/{id}?wait=60, as the Python and JavaScript samples do.
3. Download the file
Each outputs[].url is a link signed for one hour. Download what you want to keep.
curl -L -o result.png "OUTPUT_URL"Where to go next
- Models and variants: how to read the catalog and what a variant is.
- Estimate a price: the exact price before you spend.
- Routing and fallback: which provider runs your job, and what happens when one fails.
- Use your agent: hand the whole thing to Claude Code, Codex or Cursor.