Skip to main content
text to image

Hyper-SD

by ByteDance

library_name: diffusers

80,656 downloads1,366 likes
Get API Key

API Usage

Endpoint

POST https://api.gpu.fm/v1/inference

Request

curl -X POST https://api.gpu.fm/v1/inference \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ByteDance/Hyper-SD",
    "inputs": "A serene mountain landscape at sunset, photorealistic",
    "parameters": {
      "max_new_tokens": 256
    }
  }'

Response

{
  "result": [base64 encoded image data],
  "usage": {
    "inputTokens": 12,
    "outputTokens": 128
  },
  "pricing": {
    "total": "0.000018"
  }
}

Python SDK

import requests

response = requests.post(
    "https://api.gpu.fm/v1/inference",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "model": "ByteDance/Hyper-SD",
        "inputs": "A serene mountain landscape at sunset, photorealistic",
        "parameters": {"max_new_tokens": 256}
    }
)

result = response.json()
print(result["result"])

Model Documentation

Full documentation available on HuggingFace →

Pricing

Per Image$0.0026/image

Billed from your prepaid credits. No minimum commitment.

Details

Model ID
ByteDance/Hyper-SD
Library
diffusers
Pipeline
text to image
Updated
12/5/2024

Tags

diffusersloratext-to-imagestable-diffusionfluxarxiv:2404.13686base_model:black-forest-labs/FLUX.1-devbase_model:adapter:black-forest-labs/FLUX.1-devregion:us