Skip to content

Models

The catalog of models your project can call through Lykia, with context length, supported parameters and per-token prices.

Markdown
On this page
GET/v1/models

Returns every model the calling key's project can use through Lykia. A model is listed when a provider Lykia connects to directly offers it with a price; models at the providers of the project's own provider keys are listed too, so two projects can see different lists. The response may be up to a minute old. If you send a model that has since dropped out of it, or that has been turned off, the request fails with 404. How to read model ids and prices is explained in the Models guide.

Query parameters

supported_parametersstring

Return only models that support this parameter, for example tools for models that can call tools or response_format for JSON output. Separate several names with commas to get models that support all of them.

output_modalitiesstring

The default list is meant for chat and leaves out models that only produce vectors (embeddings). embedding returns only the models for POST /embeddings; image, video, audio (speech) and transcription return media models with that output; all returns everything.

kindstring

Only models of these kinds, separated by commas: chat, embedding, image, video, speech or transcription. Media models (image, video, speech, transcription) are not in the default list; ask for them with kind or output_modalities.

Example

List the models that support tool calling:

Request
curl "https://api.getlykia.com/v1/models?supported_parameters=tools" \
  -H "Authorization: Bearer $LYKIA_API_KEY"
Response200
{
  "data": [
    {
      "id": "openai/gpt-4o-mini",
      "canonical_slug": "openai/gpt-4o-mini",
      "hugging_face_id": null,
      "name": "OpenAI: GPT-4o-mini",
      "created": 1795415185,
      "description": "GPT-4o mini is OpenAI's small, low-cost multimodal model. It accepts text, image and file inputs and returns text.",
      "context_length": 128000,
      "architecture": {
        "modality": "text+image+file->text",
        "input_modalities": [
          "text",
          "image",
          "file"
        ],
        "output_modalities": [
          "text"
        ],
        "tokenizer": null
      },
      "pricing": {
        "prompt": "0.00000015",
        "completion": "0.0000006",
        "input_cache_read": "0.000000075"
      },
      "top_provider": {
        "context_length": 128000,
        "max_completion_tokens": 16384
      },
      "supported_parameters": [
        "frequency_penalty",
        "logit_bias",
        "logprobs",
        "max_completion_tokens",
        "max_tokens",
        "prediction",
        "presence_penalty",
        "response_format",
        "seed",
        "stop",
        "structured_outputs",
        "temperature",
        "tool_choice",
        "tools",
        "top_logprobs",
        "top_p",
        "web_search_options"
      ],
      "is_free": false,
      "expiration_date": null,
      "kind": "chat"
    }
  ]
}

Response

The response is a data array of model objects, newest first. The field names are the ones common OpenAI-compatible model lists use, so libraries that read that format read this list without changes.

idstring

The model id, author/model. This is the value you put in a request's model field.

canonical_slugstring

The model's id; in Lykia it is the same as id.

hugging_face_idnull

Present for compatibility; Lykia does not fill it in.

namestring

Display name.

createdinteger | null

When the model was released, or when it was added to the catalog if the release date is not known, as a Unix timestamp in seconds.

descriptionstring

A short description of the model.

context_lengthinteger | null

The most tokens the input and output can add up to.

architectureobject

What the model takes in and puts out.

modalitystring

A compact summary such as text+image->text.

input_modalitiesstring[]

Accepted input types (text, image, file…).

output_modalitiesstring[]

Output types it produces.

tokenizernull

Present for compatibility; Lykia does not fill it in.

pricingobject

Unit prices in USD, as decimal strings. Only the units that have a price for the model are present. When the model is offered by more than one provider, this is the lowest price available to your project.

promptstring

Per input token.

completionstring

Per generated token.

requeststring

A flat fee per request.

imagestring

Per input image.

input_cache_readstring

Per input token read from the cache.

input_cache_writestring

Per input token written to the cache.

top_providerobject

The model's limits.

context_lengthinteger | null

Context length.

max_completion_tokensinteger | null

The most tokens a single response can contain.

supported_parametersstring[]

The request parameters the model supports (tools, response_format, temperature…).

is_freeboolean

true for a free model: requests to it are not charged to credits but count towards the daily limit for free models.

expiration_datestring | null

The date the model will be retired, or null if none is set.

kindstring

Which endpoint the model is for: chat, embedding, image, video, speech or transcription.

mediaobject

Only on media models. Their token pricing is {}; the price is here instead.

kindstring

image, video, speech or transcription.

capabilitiesobject

What the model accepts: for example sizes, sizeRule, aspectRatios, resolutions, qualities, maxN, maxInputImages, mask, seed, outputFormats, durations, firstFrame, lastFrame, audio, speech (formats, speed, input limit), transcription (formats, file limit, timestamps) and providerOptions (the allowed provider_options). deprecatedAt is the date the provider retires the model, when announced.

pricingobject

The unit price: unit (per_image, per_megapixel, per_second, per_minute, per_video, per_character or per_token), quantity (how many units usd is for; 1 unless stated), tiers (prices by variant: each has when, the conditions such as resolution, quality, audio or tokenType, and usd, a decimal string), surcharges (extra fees with when, usd and per: request, image or second) and an optional note.

providersstring[]

The providers that serve the model for your project, in the order Lykia tries them.

These are list prices. A request's cost is calculated from prompt, completion, input_cache_read, input_cache_write, image and request; details in Credits and billing.