画像CodeFormer

Face Restore (CodeFormer)

低品質の顔を復元してアップスケールします。

model: "headshot"

APIドキュメントエージェント用ドキュメント

モード

1つのモデルID、すべてのモード。送信するフィールドがモードを決定し、価格はモードに従います。

モード選択方法標準価格
画像入力、画像出力image_url
リクエスト例
{
  "model": "headshot",
  "input": {
    "image_url": "https://example.com/image.jpg"
  }
}
$0.0084

実際の実行結果

これはツールの実際の出力です(隣の画像で)。下のプレイグラウンドは同じ入力で開くため、自分で実行できます。

Face Restore (CodeFormer): 変更前
変更前
Face Restore (CodeFormer): 変更後
変更後

入力

必須

The image to work on (https URL, or an upload URL from POST /v1/uploads).. A public https URL, or an upload URL from POST /v1/uploads.

オプション
0.5

Higher stays closer to the original face; lower restores more.

オプション
2

How many times larger.

オプション

Restore only the main face.

詳細オプション (1)

メインコントロール以外のプロバイダー設定。空のままにするとモデルのデフォルト値が使用されます。

オプション

Random seed. The same seed and input reproduce the same result.

結果

Face Restore (CodeFormer)出力例

このモデルの実際の結果です。実行してあなたの結果をここに表示させてください。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "headshot",
  "input": {
    "image_url": "https://assets.arteza.ai/generations/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/11c8171c-25fe-448c-8c89-8f7f36b69f42/0.jpg"
  }
}'
Face Restore (CodeFormer) 1Face Restore (CodeFormer) 2