コンテンツにスキップ

レプリケート

レプリケートはオープンソースモデルを実行し、微調整します。

エンドポイント

https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate

URL構造

レプリケートにリクエストを送る際は、現在使用しているURLのhttps://api.replicate.com/v1https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicateに置き換えてください。

リクエスト
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate/predictions \
--header 'Authorization: Token {replicate_api_token}' \
--header 'Content-Type: application/json' \
--data '{
"input":
{
"prompt": "Cloudflareとは何ですか?"
}
}'