# Quotes

> Use the Raywake quotes endpoint to price an exact model and input before generation. Read quote IDs, prices and expiry times.

Canonical: https://raywake.si/docs/reference/quotes
Last updated: 2026-10-13

`POST /v1/quotes`

Prices one input for one model. Requires `generate`. Nothing is charged.

The response’s `price_usd` is the amount quoted for this exact request; `quote_id` identifies it, and `expires_at` is its expiry, at most 10 minutes away. Send that quote_id with the same model and input to [POST /v1/generate](https://raywake.si/docs/reference/generate). Changed inputs or an expired quote require a new quote. For usage-based billing the quoted amount is an upper bound; see [charge settlement](https://raywake.si/docs/credits).

**Body**

| Name | Type | Description |
| --- | --- | --- |
| `model` | string | Model id. Required. |
| `input` | object | The model's input, exactly as you will generate it. Required. |

**Example**

cURL:

```bash
curl -s -X POST https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nano-banana-pro","input":{"prompt":"A red ceramic cup on a wooden table, soft morning light","aspect_ratio":"1:1"}}'
```

Python:

```python
import json, os, requests

response = requests.post(
    "https://api.raywake.com/v1/quotes",
    headers={"Authorization": f"Bearer {os.environ['RAYWAKE_API_KEY']}"},
    json=json.loads(r'''{
        "model": "nano-banana-pro",
        "input": {
            "prompt": "A red ceramic cup on a wooden table, soft morning light",
            "aspect_ratio": "1:1"
        }
    }'''),
)
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.raywake.com/v1/quotes", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.RAYWAKE_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "nano-banana-pro",
    "input": {
      "prompt": "A red ceramic cup on a wooden table, soft morning light",
      "aspect_ratio": "1:1"
    }
  }),
});
console.log(await response.json());
```

Response:

```json
{
  "quote_id": "9c1d4b7e-2f6a-4e0b-8d3c-5a7f1e2b6c90",
  "model": "nano-banana-pro",
  "price_usd": "0.24",
  "expires_at": "2026-09-25T12:10:00Z"
}
```

## Related

- [API documentation](https://raywake.si/docs)
