Make your first Varo Cloud API request in under 5 minutes. Generate an API key and run your first model to create an image or video.
This guide walks you through everything you need to make your first authenticated request to the Varo Cloud API — from generating a key to running a model and getting back a result.
Base URL:https://inference.varo.cloud/v1 — all endpoints in this guide are relative to it.
Let’s create an image. Send a POST request to /v1/generations with the model you want to run and its inputs. Pass your key in the Authorization header as a bearer token:
curl -X POST https://inference.varo.cloud/v1/generations \ -H "Authorization: Bearer $VARO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "google-nano-banana-pro/text-to-image", "prompt": "a cat sitting on a windowsill, golden hour lighting, photorealistic", "aspect_ratio": "4:3", "output_format": "jpeg", "resolution": "1K" }'
Generation state — completed when the asset is ready
model
The model that produced the output
output.type
image or video, depending on the model
output.url
Direct link to download the generated asset
usage.cost_usd
Cost of this generation, in USD (varies by model and parameters)
If you get back a 401 Unauthorized, double-check that your key is correct, starts with sk_live_, and hasn’t been revoked. See Errors for the full list of response codes.
One API, one key, one response shape for every model — swap the model field to move between image, video, and other modalities without changing your integration.