인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

p-image-text-to-image

p-image-text-to-image

P image | Text to Image. Generate images from text prompts with custom aspect ratios. Triggers: text to image, image generation, p image, ai art

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: p-image-text-to-image description: "P image | Text to Image. Generate images from text prompts with custom aspect ratios. Triggers: text to image, image generation, p image, ai art" allowed-tools: Bash(curl *), WebFetch

P image | Text to Image

Generate images from text prompts using the P Image model. Supports various preset aspect ratios and custom dimensions, with optional prompt upsampling for enhanced results.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-text-to-image",
    "version": "0.0.1",
    "input": {
      "prompt": "A majestic eagle soaring over snow-capped mountains at golden hour, photorealistic",
      "aspect_ratio": "16:9"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostring16:9Aspect ratio of the generated image. Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, custom
disable_safety_checkerbooleanfalseDisable safety checker for generated images.
heightinteger-Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of a specific value.
promptstring-Text prompt for image generation.
prompt_upsamplingbooleanfalseUpsample the prompt with an LLM for enhanced results.
seedinteger-Random seed. Set for reproducible generation.
widthinteger-Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of a specific value.

Examples

Simple generation:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-text-to-image",
    "version": "0.0.1",
    "input": {
      "prompt": "A cozy log cabin in the woods during autumn, smoke rising from the chimney"
    }
  }'

Custom dimensions with prompt upsampling:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-text-to-image",
    "version": "0.0.1",
    "input": {
      "prompt": "Futuristic spaceship interior",
      "aspect_ratio": "custom",
      "width": 1920,
      "height": 1080,
      "prompt_upsampling": true,
      "seed": 2024
    }
  }'

Portrait format:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "p-image-text-to-image",
    "version": "0.0.1",
    "input": {
      "prompt": "Elegant fashion portrait, studio lighting, minimalist background",
      "aspect_ratio": "9:16",
      "seed": 777
    }
  }'

Related Models

Documentation

저장한 Skills