BiRefNet v2
Connect Claude, Cursor, VS Code, or Codex to Layer’s MCP server and BiRefNet v2 becomes a tool your agent can reach for — it picks the parameters, runs the generation, and shows you the result in the conversation.
https://mcp.app.layer.ai/mcpAsk your agent
“Use BiRefNet v2 to generate 4 variations of a crystal sword icon on a transparent background.”
execute_forge({
"base_model_id": "birefnet-v2",
"prompt": "A crystal sword icon on a transparent background, game UI art",
"batch_size": 4,
"width": 1024,
"height": 1024
})Authenticate with a personal access token, post the model’s own form, and poll the inference until it completes. Every field below is accepted by this endpoint.
# Start the generation — returns an inference id straight away.
curl -X POST https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/base-models/nankai-birefnet-v2/inferences \
-H "Authorization: Bearer $LAYER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"guidance_file_init_image": [
{
"url": "https://example.com/input.png"
}
]
}'
# Poll until status is "complete" — the response then carries the asset URLs.
curl https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/inferences/$INFERENCE_ID \
-H "Authorization: Bearer $LAYER_TOKEN"- guidance_file_init_image file[]required
- The image to modify
- output_fit any
- Trim the transparent margin, and place the image on a canvas of a fixed size.
Create amazing image assets with BiRefNet v2 on Layer
The complete content creation platform for modern game teams. From concepting to polished in-game assets - across Image, 3D, Video, and Audio.






Why use BiRefNet v2 for image?
High-quality image generation
BiRefNet v2 delivers production-ready outputs with clean structure, sharp detail, and strong prompt adherence. Ideal for character art, environments, and marketing assets.
Strong prompt control
The model interprets creative instructions with high accuracy, even when switching between different styles, lighting setups, or character directions.
Clean compositions for UA
Maintains stable framing, clear silhouettes, and high focal clarity. Assets read well at mobile sizes, making it strong for UA experiments and ad creatives.

Rapid character and cosmetic ideation with strong structure
Quickly explore character poses, cosmetic ideas, and early art directions. Clean silhouettes and expressive results help teams evaluate concepts before moving to heavier models.

Fast UA creative exploration and thumbnail testing
Generate clear, high-readability frames that work well for quick A/B testing across networks. Test multiple creative angles and iterate quickly based on results.

Lightweight environment and item exploration for LiveOps
Draft environments, themed content, shop items, and event visuals in a rapid loop. Ideal for early-stage direction setting before committing to final polish.
FAQ
How much does BiRefNet v2 cost? Is it free?+
How does Layer's pricing work?+
There are no seat fees and no feature gates. Subscriptions start at $60 a month for 1,000 Creative Units, and each further 1,000 CUs is another $60 a month. Unused units roll over to the next billing period, up to 10% of the units included in the period. You can change the amount each month. Every generation on Layer (image, video, 3D, or audio) consumes Creative Units, and you only pay for what you create.
Other image models on Layer
Recraft Vectorize Image
Recraft
Convert raster images to vector graphics using Recraft.
Qwen-Image Layered
Qwen
Split an image into layers using Qwen-Image Layered.
FLUX.1 [pro]
Black Forest Labs
Flagship commercial T2I model offering superior prompt adherence, quality, and stylistic outputs.
Recraft V4 Pro
Recraft
Recraft's pro V4 tier, with higher fidelity and finer detail than the standard tier.
Recraft V4
Recraft
Professional design model with extended prompt support (10,000 characters) and advanced style customization.
Kling Image O3
Kling
Kling Omni 3 image model. High-quality images with text rendering capabilities up to 4K resolution.