llama-4-maverick-instruct

A 17 billion parameter model with 128 experts

$0.0023/sec 24 تشغيلات
llama-4-maverick-instruct
زمن التوليد: 0s

ستظهر النتيجة هنا

اضبط الإعدادات واضغط تشغيل، أو اضغط Ctrl - ↵ Enter.

شغّل النموذج لعرض استجابة JSON الكاملة

شاهده عملياً

استكشف مخرجات حقيقية من هذا النموذج. انقر على أي مثال لتحميل إعداداته فوراً.

Sample 1
#1

OpenAI-compatible chat completions

Use llama-4-maverick-instruct as a direct drop-in replacement with the official OpenAI SDKs or any compatible client. Point your client's baseURL to Lumoz, pass your Lumoz API key, and specify model llama-4-maverick-instruct. Supports streaming (SSE) and multimodal vision.

Base URL
https://lumozai.com/v1
Chat completions endpoint
POST https://lumozai.com/v1/chat/completions
Streaming SSE Extended context (131K) Multi-step reasoning OpenAI SDK drop-in $0.0023/sec

Code examples

Python (OpenAI SDK)
from openai import OpenAI

# Initialize the OpenAI client pointing to Lumoz
client = OpenAI(
    base_url="https://lumozai.com/v1",
    api_key="YOUR_LUMOZ_API_KEY",
)

# Text chat completion with streaming
response = client.chat.completions.create(
    model="llama-4-maverick-instruct",
    messages=[
        {"role": "system", "content": "You are a helpful and intelligent assistant."},
        {"role": "user", "content": "Explain quantum computing in simple terms."}
    ],
    temperature=0.7,
    stream=True,
)

for chunk in response:
    content = chunk.choices[0].delta.content or ""
    print(content, end="", flush=True)
print()

Request parameters (OpenAI schema)

Parameter Type Required Description
model string Required The model ID to run (llama-4-maverick-instruct).
messages array Required Array of message objects (role: system/user/assistant, content: string or multimodal array with text and image_url).
stream boolean Optional If set to true, partial message deltas will be sent as Server-Sent Events (SSE). Defaults to false.
temperature number Optional Sampling temperature between 0.0 and 2.0. Higher values make output more creative, lower values more deterministic. Defaults to 0.7.
max_tokens integer Optional The maximum number of tokens to generate in the chat completion.

Sample response (JSON)

JSON
{
  "id": "chatcmpl-a8c7b9e1",
  "object": "chat.completion",
  "created": 1728640000,
  "model": "llama-4-maverick-instruct",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Quantum computing is a rapidly-emerging technology that harnesses the laws of quantum mechanics to solve problems too complex for classical computers."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 22,
    "completion_tokens": 27,
    "total_tokens": 49
  }
}

تسعير النموذج

ادفع فقط مقابل ما تشغّله. تُخصم التكلفة مباشرة من رصيدك دون أي التزامات متكررة.

Rate per second
$ 0.0023 / second
$2.30 per 1,000 seconds
حاسبة التكلفة
1,000 seconds
الإجمالي التقديري $2.30
إضافة رصيد
استرداد تلقائي فوري عند فشل أي عملية • الرصيد صالح لمدة عام