🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

OpenAI API GPT 6 Sol API: Tạo văn bản AI

tạo văn bản với API GPT 6 Sol qua MuAPI REST API. Trả theo lượt tạo — không cần gói đăng ký.

Điều khiển mô hình tương tác

Truy cập API GPT 6 Sol qua Muapi với mức giá của OpenAI: $2.00/M token đầu vào, $0.20/M đầu vào đã lưu bộ nhớ đệm, $2.50/M ghi bộ nhớ đệm, $10.00/M đầu ra. Có xử lý bất đồng bộ và truyền phát.

API GPT 6 Sol Tham khảo API

Điểm cuối

POST https://api.muapi.ai/api/v1/gpt-6-sol

Gửi công việc có khóa API Muapi của bạn trong tiêu đề x-api-key, sau đó thăm dò ý kiến https://api.muapi.ai/api/v1/predictions/{request_id}/result cho đến khi trạng thái được hoàn thành.

Parameters

NameLoạiBắt buộcMô tả
promptstringCó。
system_promptstringKhông,。

cURL example

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/gpt-6-sol \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>"}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

Python example

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/gpt-6-sol", headers=headers, json={"prompt":"<prompt>"})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

Tài liệu đầy đủ và tích hợp đại lý/MCP: llms.txt. Get an API key at muapi.ai/access-keys.