Skip to content

SparkU AI Platform

Build your AI Spark

让思想与AI碰撞,激发灵感火花

SparkU-Logo

🌐 API地址

无需修改代码逻辑 只需将OpenAI的API地址替换为我们的API地址即可

html
https://ai.sparku.net

💻 一键调用(Python)

python
import requests
import json

url = "https://ai.sparku.net/v1/chat/completions"

payload = json.dumps({
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "user",
      "content": "请介绍一下你自己"
    }
  ],
  "temperature": 0.7
})
headers = {
  'Authorization': 'Bearer sk-please-replace-with-your-key',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

SparkU AI Platform | 使用协议  隐私政策
本站API仅用于测试和体验目的,请自觉遵守知识版权法规,切勿用于非法用途。本站不承担任何法律责任。