Skip to content

REST API

Get3W provides a RESTful API for programmatic access to 700+ AI models.

Base URL

https://api.get3w.com/api/v3

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer ${GET3W_API_KEY}

Get your API key at get3w.com/accesskey. Store it as an environment variable for security.

Basic Workflow

  1. Submit a task — Send a POST request with your parameters
  2. Get the task ID — Returned in the response
  3. Poll for results — Check status until completion
  4. Retrieve outputs — Get URLs to generated content

Example Request

bash
# Submit task
curl -X POST 'https://api.get3w.com/api/v3/get3w/flux-dev' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ${GET3W_API_KEY}' \
  -d '{
    "prompt": "A cat wearing a space suit"
  }'

# Get result (use the task ID from response)
curl 'https://api.get3w.com/api/v3/predictions/TASK_ID' \
  -H 'Authorization: Bearer ${GET3W_API_KEY}'

Response Format

Task Submission Response

json
{
  "code": 200,
  "message": "success",
  "data": {
    "id": "task-abc123",
    "status": "processing",
    "urls": {
      "get": "https://api.get3w.com/api/v3/predictions/task-abc123"
    }
  }
}

Task Result Response

json
{
  "code": 200,
  "message": "success",
  "data": {
    "id": "task-abc123",
    "status": "completed",
    "outputs": ["https://..."],
    "timings": {
      "inference": 2500
    }
  }
}

Task Status Values

StatusDescription
createdTask received
processingGeneration in progress
completedSuccess, outputs available
failedError occurred

Error Handling

CodeDescription
200Success
400Bad request (invalid parameters)
401Unauthorized (invalid API key)
403Forbidden (account issue)
429Rate limit exceeded
500Server error

API Reference

Next Steps

Released under the MIT License.