Bamboo Relay
AI model APIModelsList models

Native OpenAI format

List available models. The response format is selected from the request:

  • x-api-key and anthropic-version headers: Anthropic
  • x-goog-api-key header or key query parameter: Gemini
  • otherwise: OpenAI
GET
/v1/models

Authorization

BearerAuth
AuthorizationBearer <token>

Authenticate with a Bearer token: Authorization: Bearer sk-xxxxxx.

In: header

Query Parameters

key?string

Google API key for the Gemini format

Header Parameters

x-api-key?string

Anthropic API key for the Claude format

anthropic-version?string

Anthropic API version

x-goog-api-key?string

Google API key for the Gemini format

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/models"
{  "object": "list",  "data": [    {      "id": "gpt-4",      "object": "model",      "created": 0,      "owned_by": "openai"    }  ]}