Skip to main content

Overview

Phota specializes in personalized photo generation with profile-based identity control. Create consistent character images by referencing profiles, and enhance/upscale existing images while preserving identity.
Model IDModeCredits~Cost
photaText-to-image with profiles9$0.09
phota/editImage editing with profiles9$0.09
phota/enhanceImage enhancement/upscale13$0.13

Quick start

import { createVarg } from "vargai/ai"

const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })

const result = await varg.imageModel("phota").generate({
  prompt: "@Profile1 walking through a sunlit garden, golden hour",
  aspectRatio: "9:16",
})

console.log(result.image.url)

Capabilities

Profile-based generation

Reference profiles in your prompt with @Profile1, @Profile2, etc. for consistent character identity:
const result = await varg.imageModel("phota").generate({
  prompt: "@Profile1 and @Profile2 sitting at a cafe table, laughing",
  providerOptions: {
    varg: { profile_ids: ["profile-abc", "profile-xyz"] },
  },
})

Image editing

Edit images while preserving character identity:
cURL
curl -X POST https://api.varg.ai/v1/image \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "phota/edit",
    "prompt": "change the background to a beach sunset",
    "files": [{ "url": "https://example.com/portrait.jpg" }]
  }'

Image enhancement

Upscale and enhance images while preserving identity features:
cURL
curl -X POST https://api.varg.ai/v1/image \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "phota/enhance",
    "files": [{ "url": "https://example.com/low-res-portrait.jpg" }]
  }'

Parameters

prompt
string
required
Text description. Use @Profile1, @Profile2 etc. to reference character profiles.
aspect_ratio
string
default:"1:1"
Supported: auto, 1:1, 16:9, 4:3, 3:4, 9:16.
files
array
Reference images for editing. Up to 10 images for phota/edit. Single image for phota/enhance.
provider_options
object
Supports profile_ids (array of profile IDs), resolution ("1K" or "4K").

Pricing

ModelCreditsUSD
phota9$0.09
phota/edit9$0.09
phota/enhance13$0.13

Tips

  • Profile-based generation is ideal for creating consistent character imagery across multiple scenes and poses.
  • Enhance mode is a cost-effective way to upscale images while maintaining facial features and identity.
  • Combine with video models — generate consistent character shots with Phota, then animate with Seedance or Kling.

Soul

Alternative for character generation with 80+ style presets.

Nano Banana

General-purpose editing without identity profiles.

Image Upscale

Dedicated upscale models for maximum resolution.