Skip to main content
GET
/
v1
/
models
/
{model_id}
Get Model
curl --request GET \
  --url https://api.compilelabs.com/v1/models/{model_id}
{
  "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.

Path Parameters

model_id
string
required

The id of the model.

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

Response

Successful Response

  • TextGenerationModelResponseModel
  • ImageGenerationModelResponseModel

Text generation model response

id
string
required

The model identifier, which can be referenced in the API endpoints.

author
enum<string>
required

Information about the author or creator of the model.

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

A URL-friendly identifier for the model.

name
string
required

The display name of the model.

description
string
required

A detailed description of the model's capabilities and use cases.

created
integer
required

The Unix timestamp (in seconds) when the model was created.

owned_by
string
required

The organization that owns the model.

status
enum<string>
required

The current status of the model (active, inactive, pending, or deleted).

Available options:
pending,
active,
inactive,
deleted
visibility
enum<string>
required

Whether the model is publicly visible or private.

Available options:
private,
public
pricing
PricingModel · object[]
required

The pricing information for different usage metrics.

context_length
integer
required

The maximum number of tokens that can be processed in a single request (input + output).

Required range: x >= 1
model_type
string
default:text_generation
Allowed value: "text_generation"
capabilities
enum<string>[]

The capabilities supported by the model.

Features a model supports

Available options:
streaming,
vision,
function_calling,
structured_output,
reasoning,
image_editing