Open Beta Archipelag.io is in open beta until June 2026. All credits and earnings are virtual. Read the announcement →

API Playground

Test the API directly in your browser with live examples

The API playground at /playground lets you test the Archipelag.io API directly in your browser with live, streaming responses.

Overview

The playground is designed for exploring the API before integrating it into your application. It shows the current number of online Islands and provides ready-to-copy code examples.

No login required
You can view the playground and code examples without signing in. Sign in with your account to send live requests and see streaming responses.

Chat mode

Enter a text prompt and see a live streaming response from the network. The response displays:

  • Real-time token-by-token output
  • Total token count
  • Response timing

This is the same endpoint used by the chat interface and the REST API.

Image generation mode

Enter a text prompt to generate an image. The playground shows:

  • Generation progress
  • The completed image
  • Credit cost for the request

Code examples

The playground generates ready-to-use code for your request in multiple languages. Toggle between:

LanguageFormat
PythonUses the archipelag SDK
JavaScriptUses the @archipelag/sdk package
cURLDirect HTTP requests

Each example includes your API key (if signed in) and the exact parameters used. Click to copy any example.

From playground to production
The code examples are production-ready. Copy them directly into your application and they'll work with your API key.

Live host count

The playground header shows the current number of online Islands on the network. This gives you a sense of available capacity before sending requests.

{% card(title="API Reference", href="/api/endpoints/") %} Complete REST API endpoint documentation

Python SDK

Full Python SDK documentation

JavaScript SDK

Full JavaScript and React SDK documentation

{% end %}