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

# List Models

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

List the models available to your API key, with their capabilities and per-token prices.

Reference: https://docs.reka.ai/chat/api-reference/list-models

## Authentication

- `Authorization` header (bearer token, required) — Your Reka API key, sent as `Authorization: Bearer <key>`.

## Response

### 200

The available models.

- `object` (string, required)
- `data` (list of Model, required)

## Errors

### 401 Unauthorized Error

Missing or revoked API key.

- `error` (ErrorResponseError, required)

## Types

### Model

- `id` (string, required) — The value to pass as `model`.
- `object` (string, optional)
- `created` (integer, optional)
- `owned_by` (string, optional)
- `name` (string, optional)
- `description` (string, optional)
- `input_modalities` (list of string, optional) — Content the model accepts, such as `text`, `image` and `video`.
- `output_modalities` (list of string, optional)
- `context_length` (integer, optional) — Maximum tokens of input plus output.
- `max_output_length` (integer, optional) — Maximum tokens the model generates.
- `pricing` (ModelPricing, optional) — US dollars per token, as decimal strings.
- `supported_sampling_parameters` (list of string, optional)
- `supported_features` (list of string, optional) — Capabilities such as `tools`, `structured_outputs`, `reasoning`, `logprobs` and `streaming`.
- `hugging_face_id` (string, optional)
- `is_ready` (boolean, optional)

### ErrorResponseError

- `message` (string, required)
- `type` (string, required)
- `code` (string, optional, nullable)
- `param` (string, optional, nullable)

### ModelPricing

US dollars per token, as decimal strings.

- `prompt` (string, optional)
- `completion` (string, optional)
- `image` (string, optional)
- `request` (string, optional)
- `input_cache_read` (string, optional)

## Examples

**Response**

```json
{
  "object": "list",
  "data": [
    {
      "id": "reka-edge-2603",
      "object": "model",
      "created": 1773154800,
      "owned_by": "reka",
      "name": "Reka Edge 2603",
      "input_modalities": [
        "text",
        "image",
        "video"
      ],
      "output_modalities": [
        "text"
      ],
      "context_length": 16384,
      "max_output_length": 16384,
      "pricing": {
        "prompt": "0.0000001",
        "completion": "0.0000001",
        "image": "0",
        "request": "0",
        "input_cache_read": "0"
      },
      "supported_sampling_parameters": [
        "temperature",
        "top_p",
        "top_k",
        "max_tokens",
        "stop",
        "seed",
        "frequency_penalty",
        "presence_penalty"
      ],
      "supported_features": [
        "tools",
        "structured_outputs",
        "streaming"
      ],
      "hugging_face_id": "RekaAI/reka-edge-2603",
      "is_ready": true
    }
  ]
}
```

**SDK Code**

```python OpenAI Python SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.reka.ai/v1",
    api_key=os.environ["REKA_API_KEY"],
)

for model in client.models.list():
    print(model.id)

```

```typescript OpenAI JavaScript SDK
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.reka.ai/v1",
  apiKey: process.env.REKA_API_KEY,
});

for await (const model of client.models.list()) {
  console.log(model.id);
}

```

```go
package main

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

func main() {

	url := "https://api.reka.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.reka.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.reka.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.reka.ai/v1/models', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.reka.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.reka.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()
```