> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nyra-labs.com/api-reference/models/list/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nyra-labs.com/_mcp/server. # List models GET https://api.nyra-labs.com/v1/models Lists the models available to purchase, with their per-unit prices. Reference: https://docs.nyra-labs.com/api-reference/models/list ## Authentication - `Authorization` header (bearer token, required) — Your API key, e.g. `Authorization: Bearer nl_live_...`. ## Servers - `https://api.nyra-labs.com` (Production, default) - `http://localhost:3001` (Local) ## Response ### 200 A list of models. - `data` (list of Model, required) - `object` (enum, required) - Allowed values: `list` ## Errors ### 401 Unauthorized Error The API key is missing, malformed or invalid. - `error` (ErrorResponseError, required) ### 403 Forbidden Error The API key is missing the `models:read` scope. - `error` (ErrorResponseError, required) ## Types ### Model - `created` (integer, required) — Unix timestamp, in seconds, of when the model was created. - `id` (string, required) - `nyra` (NyraModelExtension, required) - `object` (enum, required) - Allowed values: `model` - `owned_by` (enum, required) - Allowed values: `nyra` ### ErrorResponseError - `code` (string, required, nullable) - `message` (string, required) - `param` (string, required, nullable) - `type` (enum, required) - Allowed values: `invalid_request_error`, `authentication_error`, `permission_error`, `rate_limit_error`, `insufficient_quota`, `server_error` ### NyraModelExtension - `active` (boolean, required) - `deprecated_at` (datetime, required, nullable) — When the model stops serving requests. `null` if not deprecated. - `description` (string, required, nullable) - `display_name` (string, required) - `price_per_unit_usd` (string, required) — Price for one unit, in USD, as a fixed-point decimal string. - `unit` (enum, required) — The unit `price_per_unit_usd` is quoted in. - Allowed values: `audio_second` ## Examples **Response** ```json { "data": [ { "created": 1788825600, "id": "crisperwhisper-v2", "nyra": { "active": true, "deprecated_at": null, "description": "Verbatim and intended transcripts with word-level timestamps and their alignment.", "display_name": "CrisperWhisper 2.0 Large", "price_per_unit_usd": "0.000250", "unit": "audio_second" }, "object": "model", "owned_by": "nyra" } ], "object": "list" } ``` **SDK Code** ```python import requests url = "https://api.nyra-labs.com/v1/models" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.nyra-labs.com/v1/models'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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.nyra-labs.com/v1/models" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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.nyra-labs.com/v1/models") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.nyra-labs.com/v1/models") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.nyra-labs.com/v1/models', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.nyra-labs.com/v1/models"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.nyra-labs.com/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() ```