API Features

W.ai API Overview

Our decentralized network delivers affordable, on-demand AI inference compute through a simple OpenAI compatible HTTP API.

Need real credentials? The keys shown below are dummy examples (wsk-examplekey). To obtain production keys or discuss a partnership, email [email protected].


API Usage Guide

This guide provides instructions on how to interact with our various API endpoints using curl.

Authorization

Ensure you include your authorization header with your API key:

Authorization: Bearer wsk-examplekey

List Available Models

Retrieve metadata for current available models:

curl -X GET 'https://api.w.ai/v1/models'

Model Examples:

  • llama-3.2-1b-4bit

  • llama-3.3-70b-4bit

  • flux-1-dev

  • flux-1-kontext-dev

  • sdxl

  • gemma-3-27b-4bit

  • qwen3-4b-4bit

Text-Only Chat (Llama, Mistral, Gemma, etc.)

Perform text-based interactions using LLM models like Llama:

Vision-Language Chat (Gemma-3-27B-4bit)

Describe the contents of images with VLM models like gemma-3:

Image Generation (Flux-1-dev, SDXL)

Generate images based on text prompts:

Image Editing (Flux-1-Kontext-dev)

Edit images using specified prompts:

Ensure the file paths and prompts are customized to your needs.

Last updated