Skip to main content

Overview

LemonData provides access to xAI models. Total: 15 models available.

Chat Models

Model IDPricing
grok-2-imageSee dashboard
grok-3-imageSee dashboard
grok-4See dashboard
grok-4-1-fast-non-reasoningSee dashboard
grok-4-1-fast-reasoningSee dashboard
grok-4-deepsearchSee dashboard
grok-4-fastSee dashboard
grok-4-fast-non-reasoningSee dashboard
grok-4-fast-reasoningSee dashboard
grok-4-imageSee dashboard
grok-4.1See dashboard
grok-4.1-fastSee dashboard
grok-code-fast-1See dashboard
grok-imagine-0.9See dashboard
grok-video-3See dashboard

Usage

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-lemondata-key",
    base_url="https://api.lemondata.cc/v1"
)

response = client.chat.completions.create(
    model="grok-2-image",
    messages=[{"role": "user", "content": "Hello!"}]
)
Prices shown are platform prices (~70% of official rates).