Skip to content
Inferlane

Guides, 15 of 17

Sandbox

Run one prompt against several models side by side.

What the sandbox does

The Sandbox sends one prompt to several models of the same category at once and lays the results side by side with their cost and duration. It is the quickest way to choose a model before you write code.

  1. Open the Sandbox and choose a category.
  2. Pick the models to compare and write one prompt.
  3. Run them together. Each result shows its output, cost and time.

Sandbox runs use the same queue and pricing as the API. They are charged to your balance and appear in Requests marked with the source sandbox.

The same comparison in code

There is no batch endpoint: submit one request per model, in parallel, and poll each. These 3 text to image models all accept a body with only prompt:

black-forest-labs/flux-2-pro$0.03 / megapixel
FLUX.2 [pro]. Production text to image model from Black Forest Labs, focused on prompt adherence and photoreal detail.
google/nano-banana-pro$0.15 / image
Nano Banana Pro. Google's Gemini based image model, strong at layout, legible text and multi subject scenes.
openai/gpt-image-2$0.08 / image
GPT Image 2. OpenAI's image generation model, good at following long, detailed instructions.
for MODEL in black-forest-labs/flux-2-pro google/nano-banana-pro openai/gpt-image-2; do
  curl -s -X POST "https://inferlane.net/api/v1/queue/$MODEL" \
    -H "Authorization: Key $API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"prompt":"A matte ceramic bottle on a stone ledge, soft window light"}'
  echo
done

Comparing fairly

  • Keep the prompt identical and leave model specific options at their defaults for a first pass.
  • Compare billing.amount, not the list price: units differ between models (per image, per megapixel).
  • Fix the seed on models that accept one when you rerun, so changes come from your prompt and not from chance.