> ## Documentation Index
> Fetch the complete documentation index at: https://firecrawl-docs-agent-spark-2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

> The model behind Firecrawl Agent.

Firecrawl Agent runs on a single model, **Spark 2**. There is nothing to tune: the same model handles simple lookups and deep multi-domain research.

## Available Models

| Model     | Best For                  |
| --------- | ------------------------- |
| `spark-2` | All agent tasks (default) |

Spark 2 replaces `spark-1-mini` and `spark-1-pro`. Compared to Spark 1 it is:

* **Cheaper** — most runs cost a fraction of what the same task cost on Spark 1
* **Faster** — it finishes in a small fraction of the time at the median, and its slowest runs are far shorter
* **At least as accurate** — output quality matches `spark-1-pro`, and more runs finish successfully

<Info>
  `spark-1-mini` and `spark-1-pro` are retired. Requests that still pass them run on `spark-2`, so no code change is required.
</Info>

## Specifying a Model

`spark-2` is the default, so the `model` parameter is optional:

<CodeGroup>
  ```python Python theme={null}
  from firecrawl import Firecrawl

  app = Firecrawl(api_key="fc-YOUR_API_KEY")

  # spark-2 is the default, so model can be omitted
  result = app.agent(
      prompt="Find the pricing of Firecrawl",
      model="spark-2"
  )

  print(result.data)
  ```

  ```js Node theme={null}
  import { Firecrawl } from 'firecrawl';

  const firecrawl = new Firecrawl({ apiKey: "fc-YOUR_API_KEY" });

  // spark-2 is the default, so model can be omitted
  const result = await firecrawl.agent({
    prompt: "Find the pricing of Firecrawl",
    model: "spark-2"
  });

  console.log(result.data);
  ```

  ```bash cURL theme={null}
  # spark-2 is the default, so model can be omitted
  curl -X POST "https://api.firecrawl.dev/v2/agent" \
    -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "prompt": "Find the pricing of Firecrawl",
      "model": "spark-2"
    }'
  ```
</CodeGroup>

## Pricing

Spark 2 uses dynamic, credit-based pricing that scales with task complexity.

<Info>
  Credit usage varies based on prompt complexity, data processed, and output structure.
</Info>

## API Reference

See the [Agent API Reference](/api-reference/endpoint/agent) for complete parameter documentation.

Have questions? Email [help@firecrawl.com](mailto:help@firecrawl.com).

> Are you an AI agent that needs a Firecrawl API key? See [firecrawl.dev/agent-onboarding/SKILL.md](https://www.firecrawl.dev/agent-onboarding/SKILL.md) for automated onboarding instructions.
