typetext
{
"aspect_ratio": "3:4",
"go_fast": true,
"guidance": 4,
"num_inference_steps": 50,
"output_format": "webp",
"output_quality": 80,
"prompt": "a sketch of a neon cyberpunk using a highlighter, a handwritten caption says \"Here's a quick sketch I made with a qwen lora\""
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1dd**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/qwen-shou-xin using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "3:4",
go_fast: true,
guidance: 4,
num_inference_steps: 50,
output_format: "webp",
output_quality: 80,
prompt: "a sketch of a neon cyberpunk using a highlighter, a handwritten caption says \"Here's a quick sketch I made with a qwen lora\""
};
const output = await replicate.run("fofr/qwen-shou-xin", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1dd**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/qwen-shou-xin using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/qwen-shou-xin",
input={
"aspect_ratio": "3:4",
"go_fast": True,
"guidance": 4,
"num_inference_steps": 50,
"output_format": "webp",
"output_quality": 80,
"prompt": "a sketch of a neon cyberpunk using a highlighter, a handwritten caption says \"Here's a quick sketch I made with a qwen lora\""
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1dd**********************************
This is your API token. Keep it to yourself.
Run fofr/qwen-shou-xin using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"aspect_ratio": "3:4",
"go_fast": true,
"guidance": 4,
"num_inference_steps": 50,
"output_format": "webp",
"output_quality": 80,
"prompt": "a sketch of a neon cyberpunk using a highlighter, a handwritten caption says \\"Here\'s a quick sketch I made with a qwen lora\\""
}
}' \
https://api.replicate.com/v1/models/fofr/qwen-shou-xin/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "fejrq9j76xrme0crqwhszj4gaw",
"model": "fofr/qwen-shou-xin",
"version": "hidden",
"input": {
"aspect_ratio": "3:4",
"go_fast": true,
"guidance": 4,
"num_inference_steps": 50,
"output_format": "webp",
"output_quality": 80,
"prompt": "a sketch of a neon cyberpunk using a highlighter, a handwritten caption says \"Here's a quick sketch I made with a qwen lora\""
},
"logs": "",
"output": "https://replicate.delivery/xezq/9WZsvsCOtx4qPxRVDcymLXUPFAfJMFjz1BcSOndbJQiIhKmKA/out-0.webp",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-18T21:43:37.015Z",
"started_at": "2025-08-18T21:43:37.33148Z",
"completed_at": "2025-08-18T21:43:45.46795Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/fejrq9j76xrme0crqwhszj4gaw/cancel",
"children": "https://api.replicate.com/v1/predictions/fejrq9j76xrme0crqwhszj4gaw/children",
"get": "https://api.replicate.com/v1/predictions/fejrq9j76xrme0crqwhszj4gaw",
"root": "https://api.replicate.com/v1/predictions/fejrq9j76xrme0crqwhszj4gaw",
"stream": "https://stream.replicate.com/v1/files/bcwr-okwleybffmgejan5vqs4v73yesmey5d5xkgegqvvix5gwok4u5mq",
"web": "https://replicate.com/p/fejrq9j76xrme0crqwhszj4gaw"
},
"metrics": {
"predict_time": 8.136470102,
"total_time": 8.45295
}
}