Serverless Quick Start
Get your first serverless endpoint running in minutes.
Prerequisites
- A WaveSpeedAI account with Serverless access
- A container image with your worker code (or use our examples)
Step 1: Access the Serverless Console
- Log in to wavespeed.ai
- Navigate to Serverless in the top menu
- You’ll see the GPU Specs dashboard
Step 2: Create an Endpoint
- Click Endpoints in the left sidebar
- Click Create Endpoint
- Configure your endpoint:
| Field | Description | Example |
|---|---|---|
| Name | Unique identifier | my-inference-endpoint |
| Image | Docker image URL | your-registry/your-image:tag |
| GPU Spec | GPU type | L4-24GB |
| Replicas | Initial worker count | 1 |
- Click Create
Step 3: Submit a Task
Once your endpoint is running, submit a task via API:
curl --location --request POST 'https://api.wavespeed.ai/serverless/v1/run' \
--header 'Authorization: Bearer ${WAVESPEED_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"endpoint": "my-inference-endpoint",
"input": {
"prompt": "Hello, Waverless!"
}
}'Response:
{
"id": "task_abc123",
"status": "PENDING"
}Step 4: Get the Result
Poll for the result:
curl --location --request GET 'https://api.wavespeed.ai/serverless/v1/status/task_abc123' \
--header 'Authorization: Bearer ${WAVESPEED_API_KEY}'Response when completed:
{
"id": "task_abc123",
"status": "COMPLETED",
"output": {
"result": "Processed: Hello, Waverless!"
}
}Step 5: Monitor Your Tasks
- Click Tasks in the left sidebar
- View task status: Completed, In Progress, Pending, Failed
- Search by Task ID or filter by Endpoint
What’s Next?
- Create Endpoint — Detailed endpoint configuration
- Build Worker — Write your handler code
- API Reference — Full API documentation
Troubleshooting
Task stuck in PENDING
- Check if workers are running (Endpoints → Status)
- Verify your endpoint has available replicas
Task FAILED
- Check worker logs (Tasks → Click task → View Logs)
- Verify your handler code handles the input correctly
Authentication Error
- Ensure your API key has Serverless access
- Check the Authorization header format