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

# List extraction models

GET https://api.runtype.com/v1/extraction-models

List supported extraction models, their native routes, field and image limits, pricing and credential requirements. An extraction model reads typed field values out of text and images with no generated tokens; it runs the `extract` flow step. This static catalog does not verify account eligibility or spending readiness; execution performs those checks. These models are not chat models.

Reference: https://docs.runtype.com/api-reference/runtype-api/extraction-models/list-extraction-models

## Authentication

- `Authorization` header (bearer token, required) — API key or Clerk session token

## Servers

- `https://api.runtype.com` (Production, default)
- `https://api.runtype-staging.com` (Staging)

## Response

### 200

Supported extraction model catalog.

- `models` (list of ExtractionModel, required)

## Errors

### 401 Unauthorized Error

Unauthorized

- `error` (string, required)
- `code` (string, optional) — Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs.
- `details` (list of ErrorDetailsItems, optional)
- `requiredScopes` (list of string, optional) — On `insufficient_scope`: every API key scope this request needs.

## Types

### ExtractionModel

- `contextWindow` (integer, required)
- `credentialRequirements` (ExtractionModelCredentialRequirements, required)
- `description` (string, required)
- `docsUrl` (string, required)
- `id` (string, required)
- `maxImageBytes` (integer, required)
- `maxImages` (integer, required)
- `maxTotalImageBytes` (integer, required)
- `name` (string, required)
- `passTokens` (integer, required)
- `platformFunding` (boolean, required)
- `pricing` (ExtractionModelPricing, required)
- `provider` (enum, required)
  - Allowed values: `cloudflare`
- `providerModelId` (string, required)
- `route` (enum, required)
  - Allowed values: `cloudflare-workers-ai`

### ErrorDetailsItems

- `message` (string, required)
- `code` (string, optional) — Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM).
- `path` (string, optional) — Dotted JSON path to the offending field.
- `suggestion` (string, optional) — Actionable hint (allowed values, accepted range, …).

### ExtractionModelCredentialRequirements

- `organizationCredentialSupported` (boolean, required)
- `platformFundingSupported` (boolean, required)
- `provider` (enum, required)
  - Allowed values: `platform`

### ExtractionModelPricing

- `inputPer1MTokens` (double, required)
- `inputPerToken` (string, required)
- `outputPer1MTokens` (double, required)
- `outputPerToken` (string, required)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "models": [
    {
      "contextWindow": 8192,
      "credentialRequirements": {
        "organizationCredentialSupported": false,
        "platformFundingSupported": true,
        "provider": "platform"
      },
      "description": "Cloudflare Workers AI extraction model optimized for reading typed field values from text and images. Supports structured data extraction with no generated tokens.",
      "docsUrl": "https://developers.cloudflare.com/workers-ai/models/",
      "id": "cloudflare-llama-3.2-11b-vision-instruct-extract",
      "maxImageBytes": 5242880,
      "maxImages": 5,
      "maxTotalImageBytes": 20971520,
      "name": "Llama 3.2 11B Vision Instruct (Extract)",
      "passTokens": 512,
      "platformFunding": true,
      "pricing": {
        "inputPer1MTokens": 0.2,
        "inputPerToken": "0.0000002",
        "outputPer1MTokens": 0,
        "outputPerToken": "0.0000000"
      },
      "provider": "cloudflare",
      "providerModelId": "@cf/meta/llama-3.2-11b-vision-instruct",
      "route": "cloudflare-workers-ai"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.runtype.com/v1/extraction-models"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.runtype.com/v1/extraction-models';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.runtype.com/v1/extraction-models"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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.runtype.com/v1/extraction-models")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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.runtype.com/v1/extraction-models")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.runtype.com/v1/extraction-models', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.runtype.com/v1/extraction-models");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.runtype.com/v1/extraction-models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```