Skip to content
المشاريع

حول

LLM7.io offers a single API gateway that connects you to a wide array of leading AI models from various providers.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٢
خلال 15 يومًا
+٧
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

LLM7.io provides an OpenAI-compatible API for text, image, and video generation.

Quickstart

Get an API token from dash.llm7.io.

Python

Install the OpenAI SDK:

pip install openai

Create a chat completion:

import openai

client = openai.OpenAI(
    base_url="https://api.llm7.io/v1",
    api_key="YOUR_LLM7_API_TOKEN",
)

response = client.chat.completions.create(
    model="default",
    messages=[{"role": "user", "content": "Tell me a short story."}],
)

print(response.choices[0].message.content)

curl

curl https://api.llm7.io/v1/chat/completions \
  -H "Authorization: Bearer YOUR_LLM7_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"default","messages":[{"role":"user","content":"Tell me a short story."}]}'

Documentation

License

GNU Affero General Public License

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…