# Mastra — 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.

> Discover and browse AI model providers and their available models from Mastra's comprehensive registry. Get detailed information about each provider's offerings to compare capabilities and find the right models for your needs.

**Category:** Developer Tools | **Website:** [mastra.ai/models/providers](https://mastra.ai/models/providers) | **Docs:** [parse.bot/marketplace/e4c56b83-3e30-4484-92ad-0d71ffc6c8e2/mastra-ai-api](https://parse.bot/marketplace/e4c56b83-3e30-4484-92ad-0d71ffc6c8e2/mastra-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-mastra-ai-api-e4c56b83/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_provider_models

Get detailed model information for a specific provider. Returns the provider name, description, and a list of all models with their capabilities (tools, reasoning, image, audio, video support), context window size, and pricing. The provider_slug is produced by list_providers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `provider_slug` | string | Yes | URL slug identifying the provider (e.g. 'openai', 'anthropic', 'google'). Obtained from list_providers results. |

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

### list_providers

List all AI model providers available on Mastra. Returns each provider's name, URL slug, and total model count. No pagination; all providers are returned in a single call.

**Estimated cost:** Metered

_No parameters required._

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