# Muse Spark 1.2

> Meta's closed multimodal model with a 1M context window, tool calling and a reasoning mode. Strong on factual recall and scientific coding, but below median on professional agent tasks.

Use it with Pydantic AI as `meta:muse-spark-1.2`.

## Spec sheet

- **Family:** Muse
- **Released:** 5 Aug 2026
- **Weights:** closed
- **Context window:** 1,048,576 tokens
- **Largest response:** 943,718 tokens
- **Accepts:** text, image, video, file
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** 63.8 (rank 40)
- **Price:** $1.25 input, $4.25 output, $2 blended per 1M tokens
- **Index points per $:** 31.9 (rank 62)
- **Speed:** 114 tokens/sec (rank 31)
- **Popularity:** rank 156 of 194 by usage
- **Pydantic AI Gateway:** not built in; [bring your own key](https://ai.pydantic.dev/gateway/#bring-your-own-key)

## Benchmarks

| Benchmark | Score | Rank among models tested | What it measures | Source |
| --- | --- | --- | --- | --- |
| Intelligence index | 63.8 | 43 | Our composite of the benchmarks below, 0-100 | Pydantic, from the sources credited below |
| SimpleQA Verified | 60.3% | 22 | Short factual questions answered from memory, without search | Epoch AI (CC BY 4.0) |
| SciCode | 57.4% | 20 | Scientific programming problems written by researchers | SciCode, via Epoch AI (CC BY 4.0) |
| WebDev Arena | 1534.4 | 35 | Rating from human votes on web apps the models built | LMArena, via Epoch AI (CC BY 4.0) |
| APEX-Agents | 45.4% | 43 | Long professional tasks (banking, consulting, law) passed on the first attempt | Mercor, via Epoch AI (CC BY 4.0) |
| LMArena text | 1483.5 | 17 | Rating from blind human votes between pairs of chat responses | LMArena (CC BY 4.0) |
| Epoch Capabilities Index | 155 | 45 | Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index | Epoch AI (CC BY 4.0) |

## Providers and prices

US dollars per million tokens.

| Provider | Gateway | Pydantic AI string | Input | Cached input | Output |
| --- | --- | --- | --- | --- | --- |
| Meta | BYOK | `meta:muse-spark-1.2` | $1.25 | $0.15 | $4.25 |
| OpenRouter | BYOK | `openrouter:meta/muse-spark-1.2` | $1.25 | $0.15 | $4.25 |

## Example code

### hello.py

Ask Muse Spark 1.2 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['META_API_KEY'] = '...'

agent = Agent('meta:muse-spark-1.2', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)
```

### structured_output.py

Get validated, typed output from Muse Spark 1.2 by giving the agent a Pydantic model. Run it with uv run structured_output.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic import BaseModel
from pydantic_ai import Agent

os.environ['META_API_KEY'] = '...'


class CityLocation(BaseModel):
    city: str
    country: str


agent = Agent('meta:muse-spark-1.2', output_type=CityLocation)

result = agent.run_sync('Where were the olympics held in 2012?')
print(result.output)
#> city='London' country='United Kingdom'
```

### tools.py

Give Muse Spark 1.2 two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os
import random

from pydantic_ai import Agent, RunContext

os.environ['META_API_KEY'] = '...'

agent = Agent(
    'meta:muse-spark-1.2',
    deps_type=str,
    instructions="You're a dice game, roll the die and see if it matches the user's guess.",
)


@agent.tool_plain
def roll_dice() -> str:
    """Roll a six-sided die and return the result."""
    return str(random.randint(1, 6))


@agent.tool
def get_player_name(ctx: RunContext[str]) -> str:
    """Get the player's name."""
    return ctx.deps


result = agent.run_sync('My guess is 4', deps='Anne')
print(result.output)
```

### streaming.py

Stream Muse Spark 1.2's reply to the terminal as it is generated. Run it with uv run streaming.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import asyncio
import os

from pydantic_ai import Agent

os.environ['META_API_KEY'] = '...'

agent = Agent('meta:muse-spark-1.2')


async def main():
    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:
        async for text in response.stream_text(delta=True):
            print(text, end='', flush=True)


asyncio.run(main())
```

### pax.sh

Chat with Muse Spark 1.2 in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.

```sh
export META_API_KEY='...'

uvx pax --model 'meta:muse-spark-1.2'
```

### pi.sh

Use Muse Spark 1.2 as the model behind the pi coding agent, with your own Meta key.

```sh
# npm install -g @earendil-works/pi-coding-agent
export META_API_KEY='...'

pi --model 'meta/muse-spark-1.2'
```

### ai_sdk.ts

Call Muse Spark 1.2 from TypeScript with the Vercel AI SDK.

```ts
// npm install ai @ai-sdk/openai-compatible
import { createOpenAICompatible } from '@ai-sdk/openai-compatible'
import { generateText } from 'ai'

process.env.META_API_KEY = '...'

const meta = createOpenAICompatible({
  name: 'meta',
  baseURL: 'https://api.meta.example/v1',
  apiKey: process.env.META_API_KEY,
})

const { text } = await generateText({
  model: meta('muse-spark-1.2'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About Muse Spark 1.2

Muse Spark 1.2 is a closed model from Meta, released in August 2026, that accepts text, image, video and file input. It has a 1M token context window, supports tool calling, structured output and a reasoning mode. Its strongest results are factual recall, where it ranks 22nd of 76 on SimpleQA Verified, and scientific programming, 20th of 96 on SciCode. Its intelligence index of 63.8 sits above the registry median of 59.5.

The weaknesses matter most for agent builders. On APEX-Agents, which tests long professional tasks, it passes 45% against a median of 54%, ranking 43rd of 60. Its blended price of $2 per million tokens is about twice the registry median, and it is available from only two providers, Meta and OpenRouter. Its efficiency rank of 62 of 194 reflects a mid-field result for its price.

**Strengths**

- 60% on SimpleQA Verified, 22nd of 76 models tested
- 57% on SciCode, 20th of 96 models tested
- Intelligence index 63.8, 43rd of 114, above the 59.5 median
- Accepts text, image, video and file input with a 1M context window

**Weaknesses**

- 45% on APEX-Agents, 43rd of 60 and below the 54% median
- Blended price of $2 per million tokens, about twice the median
- Only two providers, and 156th of 194 on popularity

**Best for:** Factual question answering, scientific coding and long multimodal inputs; less suited to professional agent workflows.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0); the index and its sources are described at https://models.pydantic.dev/methodology.md. Data built 2026-11-25. Compare with other models: https://models.pydantic.dev/models.md
