Skip to Content
Model providersFireworks AI

Fireworks AI

Run any agent on any Fireworks AI model, on your own Fireworks key.

Fireworks AI  serves open models through an OpenAI-compatible API; see the Fireworks model library . On Veris Bench, any agent can run on them: your own agent with its own harness, or an open-source harness such as Pi, Hermes Agent or OpenCode.

The API samples use the shell variables from Before you start.

1. Add your Fireworks key

Create an API key in your Fireworks account , then add it to your workspace. Every harness Veris runs for you can use it. If you bring your own agent, add the key to your bench’s candidate-env too.

Open Overview, choose the Provider keys card, pick Fireworks AI, paste the key, and choose Save key.

For your own agent: open the bench, go to Candidates, choose Add variable under Candidate-env, name it FIREWORKS_API_KEY, and turn on Secret.

Attempts bill your Fireworks account at its own rates.

2. Your own agent on Fireworks

Point your agent’s model client at Fireworks. With the OpenAI SDK, that is the base URL and the key:

import os from openai import AsyncOpenAI client = AsyncOpenAI( base_url="https://api.fireworks.ai/inference/v1", api_key=os.environ["FIREWORKS_API_KEY"], ) reply = await client.chat.completions.create( model=os.environ["MODEL"], # e.g. accounts/fireworks/models/kimi-k3 messages=messages, )

Any other framework or harness that takes an OpenAI-compatible base URL works the same way.

Set the model per candidate in image.env, such as {"MODEL": "accounts/fireworks/models/kimi-k3"}. One image registered as several candidates, each with its own MODEL, compares models under the same agent.

The rest is the same as for any agent: Add your agent covers building, pushing and registering it. Model calls made through a supported SDK are recorded whatever endpoint it points at, so the grader sees your agent’s tool calls on Fireworks too (step 3).

3. An open-source harness on Fireworks

Veris also runs open-source harnesses, such as Pi, Hermes Agent and OpenCode, on the Fireworks model you choose. Write to hello@veris.ai with your bench’s id, the harness, and the Fireworks model id for each candidate, and Veris adds them to your bench.

4. Compare them in one trial

Put the candidates in one trial, for example your own agent on two Fireworks models and an open-source harness on a third. Every candidate meets every task.

curl -s -X POST "$BENCH_API/benches/$BENCH_ID/trials" \ -H "Authorization: Bearer $VERIS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "fireworks models", "kind": "full", "candidate_ids": ["cand_...", "cand_...", "cand_..."]}'

When it settles, the results give each candidate its pass rate with a 95% confidence interval, and its cost per task when the bench can measure it. See Read the result.

Troubleshooting

What you seeWhyWhat to do
Your agent’s attempts fail on a missing FIREWORKS_API_KEYThe key is not in the bench’s candidate-env.Add it there (step 1).
409 at trial start: workspace has no fireworks API keyA harness on Fireworks, and no Fireworks key in the workspace.Add it under Provider keys (step 1).
Attempts fail with a Fireworks 401 or 429The key was refused, or the account hit its rate limit.Replace the key, or lower the trial’s parallel.