import dragoneye as di
di_client = di.Dragoneye(api_key="API_KEY")
result = di_client.classification.predict(
image=Image(
url="https://example.com/image.png"
),
model="yourUserName/modelId",
)
import { Dragoneye } from "dragoneye-node"
const dragoneyeClient = new Dragoneye({
apiKey: "API_KEY"
});
const results = await dragoneyeClient
.classification.predict({
image: {
url: "https://example.com/image.png"
},
modelName: "yourUserName/modelId",
});
curl -L 'https://api.dragoneye.ai/predict' \
-H 'Authorization: Bearer <YOUR TOKEN>' \
-F 'image_url="https://example.com/image.jpg"' \
-F 'model_name=yourUserName/modelId'