Image 提供: Stable Diffusion

Stable Diffusion 3.5 Large Turbo API

数ステップで Large に迫る品質。高速・低価格。

Stable Diffusion 3.5 Large Turbo を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。

model: "stable-diffusion-3.5-large-turbo"

Stable Diffusion 3.5 Large Turbo の特長

  • 1:1, 16:9, 21:9 を含む 9 種類のアスペクト比に対応。
  • 画像から画像への編集と参照画像に対応。
  • 高速処理 — 1回の生成あたり平均約4秒。
  • Stable Diffusion のアカウント不要の従量課金。成功した生成分だけお支払いいただきます。
  • Apiframe のすべてのモデルで、1つのAPIキー・統一請求・冪等性・Webhookに対応。

Stable Diffusion 3.5 Large Turbo で作成

Apiframeの Stable Diffusion 3.5 Large Turbo API で生成した出力例です。

サンプル準備中

A cinematic portrait of an astronaut in a neon-lit alley, 85mm, shallow depth of field

サンプル準備中

Cozy isometric coffee shop, warm morning light, highly detailed 3D render

サンプル準備中

A majestic snow leopard on a misty mountain ridge at golden hour

概要

エンドポイント
POST /v2/images/generate
モデルID
stable-diffusion-3.5-large-turbo
パラメータキー
stableDiffusionParams
モダリティ
画像
プロバイダー
Stable Diffusion
平均完了時間
~4s

機能

アスペクト比1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 9:16, 9:21
画像入力対応
平均時間~4秒

クイックスタート

APIキーを添えて POST /v2/images/generate に1回リクエストを送るだけで Stable Diffusion 3.5 Large Turbo による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。

curl -X POST https://api.apiframe.ai/v2/images/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "stable-diffusion-3.5-large-turbo",
        "stableDiffusionParams": {
            "image": "https://example.com/input.jpg",
            "prompt_strength": 0.85,
            "cfg": 3.5,
            "steps": 28
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "stable-diffusion-3.5-large-turbo",
        "stableDiffusionParams": {
            "image": "https://example.com/input.jpg",
            "prompt_strength": 0.85,
            "cfg": 3.5,
            "steps": 28
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
    "model": "stable-diffusion-3.5-large-turbo",
    "stableDiffusionParams": {
      "image": "https://example.com/input.jpg",
      "prompt_strength": 0.85,
      "cfg": 3.5,
      "steps": 28
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

レスポンスとジョブのライフサイクル

生成は非同期で行われます。送信が成功すると 202 AcceptedjobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。

1. 送信レスポンス (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. 結果をポーリング

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

入力スキーマ

Stable Diffusion 3.5 Large Turbo エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。

パラメータ 必須 デフォルト 許可値 / 範囲 説明
prompt string 必須 生成する内容のテキスト説明。
model string 必須 "stable-diffusion-3.5-large-turbo" "stable-diffusion-3.5-large-turbo" このエンドポイントのモデル識別子。
stableDiffusionParams.image string (URL) 任意 Optional image for image-to-image mode. Output matches its aspect ratio.
stableDiffusionParams.prompt_strength number 任意 0.85 min 0, max 1, step 0.05 Denoising strength for image-to-image (0–1). 1.0 ignores the input image.
stableDiffusionParams.cfg number 任意 3.5 min 0, max 20, step 0.1 How strictly to follow the prompt.
stableDiffusionParams.steps number 任意 28 min 1, max 40, step 1 Steps
stableDiffusionParams.output_format string 任意 "webp" "webp", "jpg", "png" Output format
stableDiffusionParams.output_quality number 任意 90 min 0, max 100, step 1 Output quality
stableDiffusionParams.seed number 任意 step 1 Reuse a number to reproduce the same result.

よくある質問

Stable Diffusion 3.5 Large Turbo APIに関するよくある質問をまとめました。

Stable Diffusion 3.5 Large Turbo の API はありますか?

はい。Apiframe は単一の REST エンドポイント(`POST /v2/images/generate`、`model: "stable-diffusion-3.5-large-turbo"`)で Stable Diffusion 3.5 Large Turbo を提供します。対応するすべてのモデルで、統一されたAPI・キー・請求をご利用いただけ、Stable Diffusion の個別アカウントは不要です。

Stable Diffusion 3.5 Large Turbo API の料金はいくらですか?

Stable Diffusion 3.5 Large Turbo は Apiframe のシンプルな従量課金制で、成功した生成分のみお支払いいただきます。プランと数量割引は料金ページをご覧ください。

Stable Diffusion 3.5 Large Turbo API はどのように呼び出しますか?

`X-API-Key` と、`model: "stable-diffusion-3.5-large-turbo"` を含む JSON ボディを添えて `/v2/images/generate` に POST リクエストを送ります。レスポンスで返る `jobId` を `GET /v2/jobs/{id}` でポーリングするか、Webhook で結果を受け取ります。

Stable Diffusion 3.5 Large Turbo はどんなパラメータに対応していますか?

Stable Diffusion 3.5 Large Turbo は、共通の `prompt`・`webhook_url` に加えて、`stableDiffusionParams` の下にネストされた 7 個のモデル固有パラメータを受け付けます。型やデフォルト値を含む一覧は上記の入力スキーマをご覧ください。

解決しませんでしたか?

Stable Diffusion 3.5 Large Turbo API で開発を始めよう

APIキーを取得すれば数分で Stable Diffusion 3.5 Large Turbo を統合できます — 従量課金。

無料クレジットですぐに開始
すべてのモデルを1つのAPIで
Webhook・SDK・冪等性に対応
プロバイダーのアカウント不要

ご質問はありますか? Discordに参加 または 営業に問い合わせる