aigic-test
v1.0.0
Published
aigic js SDK
Readme
AGIN
AGIN - JavaScript sdk for agin A Node.js client for Replicate. It lets you run models from your Node.js code, and everything else you can do with Replicate's HTTP API.
- API version: 1.0
- Package version: 1.0
Installation
For Node.js
npm
Install it from npm:
npm install agin --saveGetting Started
Please follow the installation instruction and execute the following JS code:
const AGIN = require("agin");
const options = {
//get your api key or jwt token from https://console.agicoin.ai
auth:"my api key or jwt token"
}
const agin = new AGIN(options);
let response = await agin.prediction("/predictions/agicoin/ssd-1b",
{
input:{
"seed": 36446545872,
"width": 768,
"height": 768,
"prompt": "with smoke, half ice and half fire and ultra realistic in detail.wolf, typography, dark fantasy, wildlife photography, vibrant, cinematic and on a black background",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 9,
"negative_prompt": "scary, cartoon, painting",
"num_inference_steps": 25
}
});
console.log("test",response);
API
All URIs are relative to https://api.agicoin.ai
Constructor
const agin = new AGIN(options);name | type | Description ------------ | ------------- | ------------- host | string | The request host auth | string | Required.You can choose either API key or JWT token for authentication,the JWT token needs to begin with 'Bearer'.
Docs
For more information, please visit the site https://docs.aigic.ai
