Skip to main content
GET
/
v1
/
models
Get Models
curl --request GET \
  --url https://api.compilelabs.com/v1/models
{
  "data": [
    {
      "id": "<string>",
      "author": "openai",
      "slug": "<string>",
      "name": "<string>",
      "description": "<string>",
      "created": 123,
      "owned_by": "<string>",
      "status": "pending",
      "visibility": "private",
      "pricing": [
        {
          "metric": "input_tokens",
          "rate": 1
        }
      ],
      "context_length": 2,
      "model_type": "text_generation",
      "capabilities": [
        "streaming"
      ]
    }
  ]
}

Headers

x-api-key
string | null

Your API key.

Query Parameters

type
enum<string>
default:text_generation

The type of the model.

Available options:
text_generation,
image_generation,
speech_to_text,
text_to_speech,
moderation
author
enum<string> | null

The author of the model.

Available options:
openai,
google,
anthropic,
meta,
qwen,
moonshot,
mistral,
black-forest-labs,
x-ai,
stability-ai,
deepseek,
z-ai
Example:

"meta"

Response

Successful Response

Response containing a list of available models.

data
(TextGenerationModelResponseModel · object | ImageGenerationModelResponseModel · object)[]
required

A list of available models that can be used with the API.

Text generation model response

  • TextGenerationModelResponseModel
  • ImageGenerationModelResponseModel