Skip to content

模型超市 pruna.ai

价格与计费

  • 价格为 pruna.ai 官网的汇率 3
  • 例如:官网 flux-dev 0.005 美刀/张 ,本站 0.015 人民币/张 就是 150 积分/张
  • 计费:视频按次、图片按张张
  • 官方模型和价格

支持的模型

  • 如果你在官网发觉有更多好玩的模型,请联系管理员 把模型加入进来

Pruna 模型

模型类型价格
p-image图片生成$0.005 / 张
p-image-lora图片生成(支持 LoRA)$0.005 / 张
p-image-trainer暂不支持$1.80 / 1000 Steps
p-image-edit图片编辑$0.010 / 张
p-image-edit-lora图片编辑(支持 LoRA)$0.010 / 张
p-image-edit-trainer暂不支持$4.00 / 1000 Steps
p-video视频生成按参数计费
p-video-avatar暂不支持按参数计费
p-video-animate暂不支持720P:$0.03/秒;1080P:$0.06/秒
p-video-replace暂不支持720P:$0.03/秒;1080P:$0.06/秒
p-image-upscale图片超分放大按参数计费

其他文生图模型

模型类型价格
flux-dev图片生成$0.005 / 张
flux-dev-lora图片编辑(支持 LoRA)$0.01 / 张
wan-image-small图片生成$0.005 / 张
qwen-image图片生成$0.025 / 张
qwen-image-fast图片生成(极速版)$0.005 / 张
z-image-turbo图片生成(极速版)$0.005 / 张
z-image-turbo-lora图片生成(支持 LoRA)$0.008 / 张
flux-2-klein-4b图片生成$0.0001 / 张
qwen-image-edit-plus图片编辑$0.03 / 张

API

  • 官方文档
  • 将请求网址 https://api.pruna.ai 替换为 https://api.openai-hk.com/pruna

新建任务

shell
curl --request POST \
  --url https://api.openai-hk.com/pruna/v1/predictions \
  --header 'apikey: hk-your-apikey' \
  --header 'Model: p-video' \
  --data '{
    "input": {
      "prompt": "The camera slowly pushes in, the person turns their head and smiles, gentle wind moves their hair",

      "duration": 3,
      "resolution": "1080p"
    }
  }'
curl --request POST \
  --url https://api.openai-hk.com/pruna/v1/predictions \
  --header 'apikey: hk-your-apikey' \
  --header 'Model: p-video' \
  --data '{
    "input": {
      "prompt": "The camera slowly pushes in, the person turns their head and smiles, gentle wind moves their hair",

      "duration": 3,
      "resolution": "1080p"
    }
  }'
  • 返回得到 id 为下一个步骤的 task_id
json
{
  "id": "4j9a2jx8csrmw0cyppwakrhaxw",
  "model": "p-video",
  "input": {
    "duration": 3,
    "prompt": "The camera slowly pushes in, the person turns their head and smiles, gentle wind moves their hair",
    "resolution": "1080p"
  },
  "get_url": "https://api.pruna.ai/v1/predictions/status/4j9a2jx8csrmw0cyppwakrhaxw"
}
{
  "id": "4j9a2jx8csrmw0cyppwakrhaxw",
  "model": "p-video",
  "input": {
    "duration": 3,
    "prompt": "The camera slowly pushes in, the person turns their head and smiles, gentle wind moves their hair",
    "resolution": "1080p"
  },
  "get_url": "https://api.pruna.ai/v1/predictions/status/4j9a2jx8csrmw0cyppwakrhaxw"
}

获取任务状态

get https://api.openai-hk.com/pruna/v1/predictions/status/{task_id}

shell
curl --request GET \
  --url https://api.openai-hk.com/pruna/v1/predictions/status/4j9a2jx8csrmw0cyppwakrhaxw \
  --header 'apikey: hk-your-key'
curl --request GET \
  --url https://api.openai-hk.com/pruna/v1/predictions/status/4j9a2jx8csrmw0cyppwakrhaxw \
  --header 'apikey: hk-your-key'
  • 结果
json
{
  "generation_url": "https://api.pruna.ai/v1/predictions/delivery/xezq/fqe3EIDDtntwrkBoXWleT8p8DR6ToQXYPliZi6u4fUneXPw1C/output.mp4",
  "status": "succeeded"
}
{
  "generation_url": "https://api.pruna.ai/v1/predictions/delivery/xezq/fqe3EIDDtntwrkBoXWleT8p8DR6ToQXYPliZi6u4fUneXPw1C/output.mp4",
  "status": "succeeded"
}