Skip to main content
GET
/
v1
/
pricing
List currently-effective per-model pricing
curl --request GET \
  --url https://tokens.flex.ai/v1/pricing
{
  "object": "list",
  "data": [
    {
      "model": "<string>",
      "currency": "USD",
      "effective_at": "2023-11-07T05:31:56Z",
      "input_per_mtok": 123,
      "output_per_mtok": 123,
      "cached_input_per_mtok": 123,
      "unit_price_usd": 123,
      "billing_unit": "<string>",
      "resolution_tier": "<string>",
      "quality_tier": "<string>"
    }
  ],
  "generated_at": "2023-11-07T05:31:56Z"
}

Response

200 - application/json

Successful response

object
enum<string>
required
Available options:
list
data
object[]
required
generated_at
string<date-time>
required