Skip to main content
Serverless is the fastest way to get started with using open models. This quickstart will help you make your first API call in minutes.

Step 1: Create and export an API key

Before you begin, create an API key in the Fireworks dashboard. Click Create API key and store it in a safe location. Once you have your API key, export it as an environment variable in your terminal:

Step 2: Make your first Serverless API call

Install the Fireworks Python SDK:
The SDK is currently in alpha. Use the --pre flag when installing to get the latest version.
Then make your first Serverless API call:
You should see a response like: "¡Hola!"
For Priority tier (service_tier: "priority") and Fast, see Serverless Serving Paths.

Common use cases

Streaming responses

Stream responses token-by-token for a better user experience:

Function calling

Connect your models to external tools and APIs:
Learn more about function calling →

Structured outputs (JSON mode)

Get reliable JSON responses that match your schema:
Learn more about structured outputs →

Reasoning

Some models support reasoning, where the model shows its thought process before giving the final answer:
Learn more about reasoning →

Vision models

Analyze images with vision-language models:
Learn more about vision models →

Learn more about Serverless

For the model lifecycle policy, billing details, and serverless-specific request/response behavior, see the Serverless overview.

Next steps

Ready to scale to production, explore other modalities, or customize your models?

Deploy and autoscale on Dedicated GPUs

Deploy with high performance on dedicated GPUs with fast autoscaling and minimal cold starts

Fine-tune Models

Improve model quality with supervised and reinforcement learning

Embeddings & Reranking

Use embeddings & reranking in search & context retrieval

Batch Inference

Run async inference jobs at scale, faster and cheaper

Browse 100+ Models

Explore all available models across modalities

API Reference

Complete API documentation