Back to Promptfoo

provider-meta (Meta Model API)

examples/provider-meta/README.md

0.121.191.2 KB
Original Source

provider-meta (Meta Model API)

You can run this example with:

bash
npx promptfoo@latest init --example provider-meta
cd provider-meta

Usage

Set your MODEL_API_KEY environment variable — Meta's official variable, the same one its SDKs use. You can create a key from the API keys tab on the Meta Model API dashboard.

Then run:

bash
promptfoo eval

View the results with promptfoo view.

What this shows

  • muse-spark-1.1 — Meta's Muse Spark multimodal reasoning model — evaluated at two reasoning_effort levels (minimal vs high) on a short summarisation task, so you can compare answer quality, latency, and cost.
  • Cost is computed automatically from Meta's published pricing, including the cheaper cached-input rate for prompt-cache hits.
  • Plain icontains / icontains-any assertions, so the example runs with nothing but a MODEL_API_KEY.

meta:<model> targets Meta's Responses API by default, so search grounding with inline citations is one config line away: add tools: [{ type: web_search }] to a provider. See the provider docs for the chat completions (meta:chat:) and Anthropic-compatible (meta:messages:) surfaces.