Upload an image then create asset on that image

I have images in my local storage. Need to upload that images the create asset on that images. I have to do it through API. I have carted “Creating an upload resource” but then can’t create asset from that. Could you please provide the step