# Artificial Analysis — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Compare and rank LLM models and providers across performance benchmarks, then dive into detailed specifications for any model to find the best fit for your needs. Discover performance metrics for specialized AI systems handling speech, images, and video, plus benchmark data for different hardware configurations.

**Category:** Developer Tools | **Website:** [artificialanalysis.ai/](https://artificialanalysis.ai/) | **Docs:** [parse.bot/marketplace/38112545-1827-412c-8424-6cf212296124/artificialanalysis-ai-api](https://parse.bot/marketplace/38112545-1827-412c-8424-6cf212296124/artificialanalysis-ai-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_cost_per_task

Get per-model cost-per-task data from the Artificial Analysis homepage. Returns Intelligence Index score, cost per task (USD) with granular cost breakdown, time per task, end-to-end response time, TTFT, token counts per task (input, output, reasoning), and Coding Index score. Coding cost/time fields are included but currently null as the site does not expose per-coding-task cost data. When `models` is provided, loads the page filtered to those slugs; when omitted returns the default homepage set.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `models` | string | No | Comma-separated list of model slugs to filter results (e.g. 'claude-sonnet-5,gpt-5-6-sol,gemini-3-5-flash-lite'). When omitted, returns the default set of models shown on the homepage. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_cost_per_task \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"models":"<string>"}'
```

### get_hardware_benchmarks

Get hardware benchmark data for GPUs including system benchmarks with throughput, output speed, latency measurements, pricing, and chip specifications.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_hardware_benchmarks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_llm_providers_leaderboard

Get the main LLM API Providers Leaderboard data, including all model endpoints and their performance metrics (speed, latency, price, etc.). Returns a large dataset of provider-model combinations with pricing, timescale performance data, and benchmark scores.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_llm_providers_leaderboard \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_model_cost_per_task

Get cost-per-task data for a specific model by its slug. Loads the model's dedicated page and extracts Intelligence Index vs Cost Per Task metrics including cost breakdown, token counts, timing, and coding index. Returns data for the single requested model only.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The model slug identifying the model (e.g., 'gpt-5-6-sol', 'gpt-5-6-terra-high', 'claude-sonnet-4') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_model_cost_per_task \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_model_detail

Get detailed information for a specific model by its slug, including benchmark scores, intelligence index, context window size, pricing, and evaluation data. Uses the model's providers page for efficient retrieval.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The model slug identifying the model (e.g., 'gpt-4o', 'o3', 'claude-sonnet-4') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_model_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_model_providers

Get API providers for a specific model, including detailed model information and a list of provider endpoints with pricing (input/output token costs, cache pricing, feature support like JSON mode and function calling), host details, and performance timescale data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The model slug identifying the model (e.g., 'gpt-4o', 'o3', 'claude-sonnet-4') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_model_providers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_models_list

Get a list of all LLM models and their summary metrics including name, slug, creator, and reasoning capability flag.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_models_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_speech_image_video_models

Get Speech, Image, and Video model families and their details. Returns separate arrays for image generation, video generation, speech-to-text, and text-to-speech model families.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/get_speech_image_video_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_models

Search for models by name or slug. Performs client-side filtering against the full models list, matching the query string against model name, slug, and shortName fields (case-insensitive substring match).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword to match against model names, slugs, and short names (e.g., 'claude', 'gpt', 'llama') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-artificialanalysis-ai-api-38112545/search_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
