> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kontinent.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kontinent.ai/_mcp/server.

# List available models

GET https://api.kontinent.ai/v1/models

OpenAI list shape with Kontinent extensions: `kind`, `context_length`,
`sovereignty`, and `pricing` (in integer micro-EUR per million tokens).


Reference: https://docs.kontinent.ai/api-reference/endpoints/models/list-models

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Kontinent API
  version: 1.0.0
paths:
  /v1/models:
    get:
      operationId: listModels
      summary: List available models
      description: |
        OpenAI list shape with Kontinent extensions: `kind`, `context_length`,
        `sovereignty`, and `pricing` (in integer micro-EUR per million tokens).
      tags:
        - models
      parameters:
        - name: Authorization
          in: header
          description: |
            A Kontinent API key: `Authorization: Bearer sk-kt-<43 base62 chars>`
            (49 chars total). Shown once at creation; only a SHA-256 hash is
            stored. No expiry; revocation takes effect within ~30 s.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The list of models available to the key's organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '401':
          description: Bad or revoked API key. Do not retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
servers:
  - url: https://api.kontinent.ai
    description: Production
  - url: http://localhost:4000
    description: Local development
components:
  schemas:
    ModelKind:
      type: string
      enum:
        - chat
        - embedding
      description: Whether the model is a chat model or an embeddings model.
      title: ModelKind
    ModelSovereignty:
      type: string
      enum:
        - strict
        - pragmatic
      description: |
        `strict` = EU-owned provider. `pragmatic` = EU region of a
        non-EU parent company.
      title: ModelSovereignty
    ModelPricing:
      type: object
      properties:
        input_micro_eur_per_mtok:
          type: integer
        output_micro_eur_per_mtok:
          type: integer
      description: Prices in integer micro-EUR per million tokens.
      title: ModelPricing
    Model:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
        owned_by:
          type: string
        kind:
          $ref: '#/components/schemas/ModelKind'
          description: Whether the model is a chat model or an embeddings model.
        context_length:
          type: integer
        sovereignty:
          $ref: '#/components/schemas/ModelSovereignty'
          description: |
            `strict` = EU-owned provider. `pragmatic` = EU region of a
            non-EU parent company.
        pricing:
          $ref: '#/components/schemas/ModelPricing'
          description: Prices in integer micro-EUR per million tokens.
      title: Model
    ModelList:
      type: object
      properties:
        object:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
      title: ModelList
    ErrorError:
      type: object
      properties:
        message:
          type: string
        type:
          type: string
        code:
          type: string
      title: ErrorError
    Error:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorError'
      title: Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        A Kontinent API key: `Authorization: Bearer sk-kt-<43 base62 chars>`
        (49 chars total). Shown once at creation; only a SHA-256 hash is
        stored. No expiry; revocation takes effect within ~30 s.

```

## Examples



**Response**

```json
{
  "object": "list",
  "data": [
    {
      "id": "mistral/mistral-large-latest",
      "object": "model",
      "owned_by": "mistral",
      "kind": "chat",
      "context_length": 128000,
      "sovereignty": "strict",
      "pricing": {
        "input_micro_eur_per_mtok": 1800000,
        "output_micro_eur_per_mtok": 5400000
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.kontinent.ai/v1/models"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.kontinent.ai/v1/models';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.kontinent.ai/v1/models"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.kontinent.ai/v1/models")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.kontinent.ai/v1/models")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.kontinent.ai/v1/models', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.kontinent.ai/v1/models");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.kontinent.ai/v1/models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```