Veyllo API プレビュー
チャット・画像認識・文字起こしの OpenAI 互換エンドポイント。任意の OpenAI クライアントを向ければ、見慣れたリクエストの形のまま。すべてキーひとつで。
POST /v1/chat/completions
メッセージを送って補完を受け取る。ストリーミングの有無は自由。標準の OpenAI Chat Completions、モデルはひとつ:veyllo-chat。
{
"model": "veyllo-chat",
"messages": [
{ "role": "user", "content": "Summarize this." }
]
}画像認識も、同じエンドポイント
どのメッセージにも画像を入れられます。veyllo-chat が読みます。別モデルも追加設定も不要。
{
"model": "veyllo-chat",
"messages": [{ "role": "user", "content": [
{ "type": "text", "text": "What's in this image?" },
{ "type": "image_url",
"image_url": { "url": "data:image/jpeg;base64,…" } }
]}]
}POST /v1/audio/transcriptions
音声を送ればテキストが返ります。標準の OpenAI 文字起こし形式。秒単位で計測、EU 域内で処理。モデルはひとつ:veyllo-transcribe。精度を高めるなら language(ja、en など)を渡してください。省略すれば自動判定します。
curl https://api.veyllo.app/v1/audio/transcriptions \
-H "Authorization: Bearer vaf_live_…" \
-F file=@meeting.mp3 \
-F model=veyllo-transcribe \
-F language=de
{ "text": "Guten Morgen, fangen wir an…" }そのまま差し替え
すでに OpenAI SDK をお使いですか?2 行変えれば Veyllo です。
from openai import OpenAI
client = OpenAI(
api_key="vaf_live_…",
base_url="https://api.veyllo.app/v1",
)
client.chat.completions.create(
model="veyllo-chat",
messages=[{"role": "user", "content": "Hello!"}],
)
client.audio.transcriptions.create(
model="veyllo-transcribe",
file=open("meeting.mp3", "rb"),
)